diff options
| author | bob <bcz@cs.brown.edu> | 2019-04-19 16:57:44 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-04-19 16:57:44 -0400 |
| commit | c8dcb2a6f93374c426f8b10292d28ca4a79b7ec0 (patch) | |
| tree | ee453702c3ad3236af25729336713b7d1cfb6449 /src/client/views/DocumentDecorations.tsx | |
| parent | af6feb64510490da8d815f41ceb639d693b9eae3 (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.tsx | 2 |
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; |
