diff options
author | bob <bcz@cs.brown.edu> | 2019-02-19 16:11:31 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-19 16:11:31 -0500 |
commit | c69e80d7bc0fc1774f71bb58b759bb571eb6a085 (patch) | |
tree | 638d69ab4bf310620cbb41d45dad9bb70b042b07 /src/client/views/nodes/DocumentView.tsx | |
parent | 9740d8e9879d95a984a842cf382260bb5572b8ef (diff) |
got rid of DocumentView as a prop
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 0ef8856b7..ac1996ac5 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -278,13 +278,11 @@ export class DocumentView extends React.Component<DocumentViewProps> { bindings.BackgroundView = backgroundView; } - bindings.DocumentView = this; - var width = this.props.Document.GetNumber(KeyStore.NativeWidth, 0); var strwidth = width > 0 ? width.toString() + "px" : "100%"; var height = this.props.Document.GetNumber(KeyStore.NativeHeight, 0); var strheight = height > 0 ? height.toString() + "px" : "100%"; - var scaling = this.props.Scaling;// this.props.ScreenToLocalTransform().Scale; + var scaling = this.props.Scaling; return ( <div className="documentView-node" ref={this._mainCont} style={{ width: strwidth, height: strheight, transformOrigin: "left top", transform: `scale(${scaling},${scaling})` }} onContextMenu={this.onContextMenu} |