const methods = {
show() {
if (!this.editor) this.editor = codeLib.popupEditor(this.$refs.editor, this.language);
- this.$refs.overlay.components.overlay.show();
+ this.$refs.overlay.components.overlay.show(() => {
+ codeLib.updateLayout(this.editor);
+ this.editor.focus();
+ });
},
hide() {
this.$refs.overlay.components.overlay.hide();