Commit ff9f05e3 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Force resize of Ace Editor on maximize/fullscreen.

Otherwise, without passing the new height/width to resize() and without force,
text is not visible when switching to maximize/fullscreen mode.
parent 2e59be50
......@@ -200,7 +200,7 @@
else if(element.webkitRequestFullScreen) {\n
element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);\n
}\n
ace_editor.resize();\n
ace_editor.resize(true);\n
}\n
}\n
\n
......@@ -216,7 +216,7 @@
ace_editor_container_div.height(height);\n
\n
if(event != null)\n
ace_editor.resize();\n
ace_editor.resize(true);\n
}\n
\n
ace_editor_container_div_parent_before_maximized = null;\n
......@@ -249,7 +249,7 @@
function() { $(this).remove(); });\n
\n
$(document).keyup(unmaximize);\n
ace_editor.resize();\n
ace_editor.resize(true);\n
}\n
\n
// Save source code only through an AJAX request\n
......@@ -365,7 +365,7 @@
readOnly: true\n
}]);\n
\n
ace_editor.resize();\n
ace_editor.resize(true);\n
\n
var PythonMode = require(\'ace/mode/python\').Mode;\n
ace_editor.getSession().setMode(new PythonMode());\n
......
2013-08-13 arnaud.fontaine
* ZODB Components: Force resize of Ace Editor on maximize/fullscreen. Otherwise, without passing the new height/width to resize() and without force, text is not visible when switching to maximize/fullscreen mode.
2013-08-13 arnaud.fontaine
* ZODB Components: Add Ace Editor settings menu (Alt+p) to set up keybinding styles for example.
......
12
\ No newline at end of file
13
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment