ui: display editor only when it is ready
so it avoid strange ui effect when div get positioned
This commit is contained in:
parent
d5020f53ab
commit
15af63b0f8
2 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,9 @@ body {
|
|||
height: auto;
|
||||
flex: 1 auto;
|
||||
}
|
||||
#editorcontainerbox #editorcontainer:not(.initialized) {
|
||||
visibility: hidden;
|
||||
}
|
||||
#editorcontainerbox #editorcontainer iframe {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue