Commit a615b64e authored by Sebastien Robin's avatar Sebastien Robin

erp5_code_mirror: make it taller than 300 pixels when it is possible

parent fdd48a15
......@@ -511,6 +511,10 @@
lint: lint_option\n
});\n
//cm.foldCode(CodeMirror.Pos(8, 0));\n
var parent_height = getTextareaField()[0].parentNode.clientHeight\n
if(parent_height !== undefined && parent_height > (300 * 0.8)) {\n
cm.setSize(undefined, parent_height);\n
}\n
\n
updateErrorWarningMessageDivWithJump();\n
\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