aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-01-23 18:43:53 -0500
committerbob <bcz@cs.brown.edu>2020-01-23 18:43:53 -0500
commit846e1c7eba28f042509ec84c31afe2bcbb5a2283 (patch)
treedb437ee134566925173456d19aeb2b1a6fbaf61b /src/client/views/nodes/DocumentView.tsx
parentc23d9ba83c87511a626bfe8d1da5dd981e311262 (diff)
imagebox fixes
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;