From: Lo?c C. <lo...@us...> - 2001-05-05 21:50:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv5102/chat/lib/index_libs Modified Files: do_enter_db_work.lib.php3 Log Message: Fix the bug of the input frame size when joining another room Index: do_enter_db_work.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/do_enter_db_work.lib.php3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** do_enter_db_work.lib.php3 2001/05/04 16:26:28 1.14 --- do_enter_db_work.lib.php3 2001/05/05 21:50:14 1.15 *************** *** 259,262 **** --- 259,269 ---- $keptLang = $dbSessionVars['lang']; $keptFrom = $dbSessionVars['from']; + if (!isset($winWidth) && dbSessionIsRegistered('winWidth')) + { + $winWidth = $dbSessionVars['winWidth']; + $winHeight = $dbSessionVars['winHeight']; + $colWidth = $dbSessionVars['colWidth']; + $rowHeight = $dbSessionVars['rowHeight']; + } unset($dbSessionVars); $dbSessionVars['from'] = $keptFrom; *************** *** 279,283 **** --- 286,292 ---- // some sizes $dbSessionVars['winWidth'] = (isset($winWidth)) ? $winWidth : 800; + $dbSessionVars['winHeight'] = (isset($winHeight)) ? $winHeight : 600; $dbSessionVars['colWidth'] = (isset($colWidth)) ? $colWidth : (L_FONT_SIZE * 0.85); + $dbSessionVars['rowHeight'] = (isset($rowHeight)) ? $rowHeight : ((L_FONT_SIZE * 1.5) + 5); dbSessionSave(); |