From 846e1c7eba28f042509ec84c31afe2bcbb5a2283 Mon Sep 17 00:00:00 2001
From: bob <bcz@cs.brown.edu>
Date: Thu, 23 Jan 2020 18:43:53 -0500
Subject: imagebox fixes

---
 src/client/views/nodes/DocumentView.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/client/views/nodes/DocumentView.tsx')

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;
-- 
cgit v1.2.3-70-g09d2

