cosmetic changes

This commit is contained in:
ralph
2013-04-02 14:46:02 -04:00
parent 5952e69ada
commit 55a3ce15ea
2 changed files with 8 additions and 2 deletions

View File

@@ -61,6 +61,12 @@ CodeMirror.showHint = function(cm, getHints, options) {
hints.style.top = top + "px"; hints.style.top = top + "px";
hints.style.width = (maxWidth * 18) + "px"; hints.style.width = (maxWidth * 18) + "px";
ie = /MSIE \d/.test(navigator.userAgent);
if( ie.length > 0 ) {
hints.style.left = (left + 2) + "px";
hints.style.top = (top + 20) + "px";
}
hints.style.zIndex = "5000"; hints.style.zIndex = "5000";
document.body.appendChild(hints); document.body.appendChild(hints);

View File

@@ -63,7 +63,7 @@ var jsEditorPrompt = CodeMirror.fromTextArea(document.getElementById("form[PME_C
mode: "javascript", mode: "javascript",
lineNumbers: true, lineNumbers: true,
lineWrapping: true }); lineWrapping: true });
jsEditorPrompt.setSize(330, 170); jsEditorPrompt.setSize(430, 170);
function saveJavascript() function saveJavascript()
{ {
@@ -82,4 +82,4 @@ function setFocus1() {
setTimeout('setFocus1()', 500); setTimeout('setFocus1()', 500);
]]></PME_JS> ]]></PME_JS>
</dynaForm> </dynaForm>