aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 5663e5e3c..120bc4fd1 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -524,8 +524,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
const batch = UndoManager.StartBatch("CustomViewClicked");
const customName = "layout-" + name;
if (doc[customName] === undefined) {
- const _width = NumCast(doc.width);
- const _height = NumCast(doc.height);
+ const _width = NumCast(doc._width);
+ const _height = NumCast(doc._height);
const options = { title: "data", _width, x: -_width / 2, y: - _height / 2, };
let fieldTemplate: Doc;