|
@@ -53,7 +53,7 @@ export default defineComponent(() => {
|
|
|
|
|
|
function getPageH() {
|
|
|
const rootPage = editor.controls.pageCtrl.rootPage;
|
|
|
- const pageH = rootPage?.layout?.size[1] || Design_Page_Size[1];
|
|
|
+ const pageH = rootPage?.layout.size?.[1] || Design_Page_Size[1];
|
|
|
return editor.helper.designToNaturalSize(pageH, {
|
|
|
adaptiveH: true,
|
|
|
});
|