From: dpvc v. a. <we...@ma...> - 2005-08-25 00:30:49
|
Log Message: ----------- Updates to overcome yet another bug in MSIE. It turns out that MSIE can completely botch up the display if jsMath.ProcessBeforeShowing() is performed at the point in the web page that we have to put it, so we call wwProcess instead, and if it is in MSIE, we add an onload handler to call ProcessBeforeShowing. It's a hack, but it works. Modified Files: -------------- webwork-modperl/htdocs/jsMath: jsMath-controls.html jsMath-ww.js Revision Data ------------- Index: jsMath-controls.html =================================================================== RCS file: /webwork/cvs/system/webwork-modperl/htdocs/jsMath/jsMath-controls.html,v retrieving revision 1.1 retrieving revision 1.2 diff -Lhtdocs/jsMath/jsMath-controls.html -Lhtdocs/jsMath/jsMath-controls.html -u -r1.1 -r1.2 --- htdocs/jsMath/jsMath-controls.html +++ htdocs/jsMath/jsMath-controls.html @@ -197,14 +197,13 @@ </TD></TR> <TR><TD ALIGN="CENTER" COLSPAN="2"> <INPUT TYPE="BUTTON" ID="jsMath.resolution" VALUE="Hi-Res Fonts for Printing" - STYLE="width:17em" onClick="jsMath.Controls.PrintResolution()"> + STYLE="width:16em" onClick="jsMath.Controls.PrintResolution()"> </TD></TR> <TR><TD HEIGHT="5"></TD></TR> -<TR><TD ALIGN="LEFT"> -<INPUT TYPE="BUTTON" VALUE="Options" ID="jsMath.opts" STYLE="width:8em" onClick="jsMath.Controls.Options()"> - +<TR VALIGN="TOP"><TD ALIGN="LEFT"> +<INPUT TYPE="BUTTON" VALUE="Options" ID="jsMath.opts" STYLE="width:7em" onClick="jsMath.Controls.Options()"> </TD><TD ALIGN="RIGHT"> -<INPUT TYPE="BUTTON" VALUE="Done" ID="jsMath.done" STYLE="width:8em" onClick="jsMath.Controls.Close()"> +<INPUT TYPE="BUTTON" VALUE="Done" ID="jsMath.done" STYLE="width:7em" onClick="jsMath.Controls.Close()"> </TD></TR> </TABLE></TD></TR> <TR><TD HEIGHT="10"></TD></TR> Index: jsMath-ww.js =================================================================== RCS file: /webwork/cvs/system/webwork-modperl/htdocs/jsMath/jsMath-ww.js,v retrieving revision 1.1 retrieving revision 1.2 diff -Lhtdocs/jsMath/jsMath-ww.js -Lhtdocs/jsMath/jsMath-ww.js -u -r1.1 -r1.2 --- htdocs/jsMath/jsMath-ww.js +++ htdocs/jsMath/jsMath-ww.js @@ -28,6 +28,14 @@ src = src.replace(/jsMath-ww.js$/,'jsMath.js'); document.write('<SCRIPT SRC="'+src+'"></SCRIPT>'); } + }, + + wwProcess: function () { + if (jsMath.browser == 'MSIE') { + window.onload = function () {jsMath.ProcessBeforeShowing()} + } else { + jsMath.ProcessBeforeShowing(); + } } }; |