From: Chris R. <chr...@us...> - 2004-11-04 10:31:37
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24314/xwysiwyg/mod/xwysiwyg/_htmlarea/popups Modified Files: fullscreen.html Log Message: fix IE freeze when source edit in fullscreen Index: fullscreen.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/fullscreen.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fullscreen.html 26 Oct 2004 07:34:54 -0000 1.2 --- fullscreen.html 4 Nov 2004 10:30:32 -0000 1.3 *************** *** 54,58 **** if (document.all) { // IE ! newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight; if (newHeight < 0) { newHeight = 0; } } else { --- 54,64 ---- if (document.all) { // IE ! // newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight; ! // fix IE freeze on source edit/resize ! if(document.documentElement && document.documentElement.clientHeight) { ! newHeight = document.documentElement.clientHeight - editor._toolbar.offsetHeight; ! } else { ! newHeight = document.body.clientHeight - editor._toolbar.offsetHeight; ! } if (newHeight < 0) { newHeight = 0; } } else { |