From 5149af536236d7759be06a676517c6cff71f3c64 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Sun, 17 Mar 2019 00:26:13 -0400
Subject: back to the original version

---
 src/client/views/Main.tsx | 27 +++++++++------------------
 1 file changed, 9 insertions(+), 18 deletions(-)

(limited to 'src/client/views/Main.tsx')

diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index a128a0e73..fa8875d66 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -114,24 +114,15 @@ Documents.initProtos(mainDocId, (res?: Document) => {
     ReactDOM.render((
         <div style={{ position: "absolute", width: "100%", height: "100%" }}>
             {/* <div id="dash-title">— DASH —</div> */}
-            <Measure onResize={(r: any) => {
-                mainDocFrame.pwidth = r.entry.width;
-                mainDocFrame.pheight = r.entry.height;
-            }}>
-                {({ measureRef }) =>
-                    <div ref={measureRef} style={{ position: "absolute", width: "100%", height: "100%" }}>
-                        <DocumentView Document={mainContainer}
-                            AddDocument={undefined} RemoveDocument={undefined} ScreenToLocalTransform={() => Transform.Identity}
-                            ContentScaling={() => 1}
-                            PanelWidth={() => mainDocFrame.pwidth}
-                            PanelHeight={() => mainDocFrame.pheight}
-                            isTopMost={true}
-                            SelectOnLoad={false}
-                            focus={() => { }}
-                            ContainingCollectionView={undefined} />
-                    </div>
-                }
-            </Measure>
+            <DocumentView Document={mainContainer}
+                AddDocument={undefined} RemoveDocument={undefined} ScreenToLocalTransform={() => Transform.Identity}
+                ContentScaling={() => 1}
+                PanelWidth={() => 0}
+                PanelHeight={() => 0}
+                isTopMost={true}
+                SelectOnLoad={false}
+                focus={() => { }}
+                ContainingCollectionView={undefined} />
             <DocumentDecorations />
             <ContextMenu />
             <button className="clear-db-button" onClick={clearDatabase}>Clear Database</button>
-- 
cgit v1.2.3-70-g09d2

