ui: display editor only when it is ready

so it avoid strange ui effect when div get positioned
pull/3969/head
Sebastian Castro 2020-04-28 16:14:00 +02:00 committed by muxator
parent d5020f53ab
commit 15af63b0f8
2 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,9 @@ body {
height: auto;
flex: 1 auto;
}
#editorcontainerbox #editorcontainer:not(.initialized) {
visibility: hidden;
}
#editorcontainerbox #editorcontainer iframe {
width: 100%;
height: auto;

View File

@ -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});
}
},