Commit 805c65a3 authored by Boris Kocherov's avatar Boris Kocherov

erp5_ace_editor: maximize by vertical.

parent 5ebfc13e
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
width = 200;\n width = 200;\n
ace_editor_container_div.width(width);\n ace_editor_container_div.width(width);\n
\n \n
height = $(window).height() - ace_editor_container_div.offset().top * 2 - 1;\n height = $(window).height() - ace_editor_container_div.offset().top - 40;\n
  • this line is using the same formula as line213 . The caculation of a maximum available width is correct, for vertical calculation this formula is wrong. I think i corrected vertical formula.

Please register or sign in to reply
if(height < 400)\n if(height < 400)\n
height = 400;\n height = 400;\n
ace_editor_container_div.height(height);\n ace_editor_container_div.height(height);\n
......
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