ui: display editor only when it is ready

so it avoid strange ui effect when div get positioned
This commit is contained in:
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});
}
},