|
@@ -181,6 +181,7 @@ export class ScreenCtrl extends ModuleControl<EditorModule> {
|
|
}
|
|
}
|
|
|
|
|
|
this.controls.editorCtrl.state.setPage({w, h});
|
|
this.controls.editorCtrl.state.setPage({w, h});
|
|
|
|
+ if (!page.rootPage.layout.size) page.rootPage.layout.size = [0, 0]
|
|
page.rootPage.layout.size[0] = this.getCurrScreenWidth();
|
|
page.rootPage.layout.size[0] = this.getCurrScreenWidth();
|
|
page.rootPage.layout.size[1] = this.getCurrScreenHeight();
|
|
page.rootPage.layout.size[1] = this.getCurrScreenHeight();
|
|
|
|
|