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 @@ ...@@ -200,7 +200,7 @@
else if(element.webkitRequestFullScreen) {\n else if(element.webkitRequestFullScreen) {\n
element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);\n element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);\n
}\n }\n
ace_editor.resize();\n ace_editor.resize(true);\n
}\n }\n
}\n }\n
\n \n
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
ace_editor_container_div.height(height);\n ace_editor_container_div.height(height);\n
\n \n
if(event != null)\n if(event != null)\n
ace_editor.resize();\n ace_editor.resize(true);\n
}\n }\n
\n \n
ace_editor_container_div_parent_before_maximized = null;\n ace_editor_container_div_parent_before_maximized = null;\n
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
function() { $(this).remove(); });\n function() { $(this).remove(); });\n
\n \n
$(document).keyup(unmaximize);\n $(document).keyup(unmaximize);\n
ace_editor.resize();\n ace_editor.resize(true);\n
}\n }\n
\n \n
// Save source code only through an AJAX request\n // Save source code only through an AJAX request\n
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
readOnly: true\n readOnly: true\n
}]);\n }]);\n
\n \n
ace_editor.resize();\n ace_editor.resize(true);\n
\n \n
var PythonMode = require(\'ace/mode/python\').Mode;\n var PythonMode = require(\'ace/mode/python\').Mode;\n
ace_editor.getSession().setMode(new PythonMode());\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 2013-08-13 arnaud.fontaine
* ZODB Components: Add Ace Editor settings menu (Alt+p) to set up keybinding styles for example. * ZODB Components: Add Ace Editor settings menu (Alt+p) to set up keybinding styles for example.
......
12 13
\ No newline at end of file \ 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