aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-19 16:57:44 -0400
committerbob <bcz@cs.brown.edu>2019-04-19 16:57:44 -0400
commitc8dcb2a6f93374c426f8b10292d28ca4a79b7ec0 (patch)
treeee453702c3ad3236af25729336713b7d1cfb6449 /src/client/views/DocumentDecorations.tsx
parentaf6feb64510490da8d815f41ceb639d693b9eae3 (diff)
moved icon into documentview until it can find a better home.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index da2c7a3be..1f5078c85 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -202,7 +202,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
let dy = e.pageY - this._downY;
if (Math.abs(dx) > 4 || Math.abs(dy) > 4) {
this._iconifying = true;
- let xf = SelectionManager.SelectedDocuments()[0].props.ScreenToLocalTransform().inverse().transformPoint(0, 0);
+ let xf = SelectionManager.SelectedDocuments()[0].props.ScreenToLocalTransform().scale(SelectionManager.SelectedDocuments()[0].props.ContentScaling()).inverse().transformPoint(0, 0);
let dx = e.pageX - xf[0];
let dy = e.pageY - xf[1];
this._minimizedX = e.clientX;