diff --git a/src/static/css/pad/layout.css b/src/static/css/pad/layout.css index 0d583f32..84c12814 100644 --- a/src/static/css/pad/layout.css +++ b/src/static/css/pad/layout.css @@ -29,6 +29,9 @@ body { height: auto; flex: 1 auto; } +#editorcontainerbox #editorcontainer:not(.initialized) { + visibility: hidden; +} #editorcontainerbox #editorcontainer iframe { width: 100%; height: auto; diff --git a/src/static/js/pad.js b/src/static/js/pad.js index 622b57f3..aeeca15c 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -573,6 +573,8 @@ var pad = { mobileMatch.addListener(checkChatAndUsersVisibility); // check if window resized setTimeout(function() { checkChatAndUsersVisibility(mobileMatch); }, 0); // check now after load + $('#editorcontainer').addClass('initialized'); + hooks.aCallAll("postAceInit", {ace: padeditor.ace, pad: pad}); } },