diff options
| author | bob <bcz@cs.brown.edu> | 2019-09-19 11:49:38 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-09-19 11:49:38 -0400 |
| commit | 4c0bdf9c38a134a7e669d8c113e10e9cfac6e1a6 (patch) | |
| tree | 3f0859cf7aa2417c7b9de5bdcd028f2ff6bc294f /src/client/views/DocumentDecorations.tsx | |
| parent | 2cdca63ac039a7c66a9c93acb35fe51467269e64 (diff) | |
fixed text location when editing a resized document. made animatebetweenPoint from documentview's collapsetoTargetPoint
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 4582c5b0c..2b121b32b 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -364,7 +364,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> if (minimizedDoc) { let scrpt = selectedDocs[0].props.ScreenToLocalTransform().scale(selectedDocs[0].props.ContentScaling()).inverse().transformPoint( NumCast(minimizedDoc.x) - NumCast(selectedDocs[0].Document.x), NumCast(minimizedDoc.y) - NumCast(selectedDocs[0].Document.y)); - selectedDocs[0].collapseTargetsToPoint(scrpt, await DocListCastAsync(minimizedDoc.maximizedDocs)); + SelectionManager.DeselectAll(); + DocumentManager.Instance.animateBetweenPoint(scrpt, await DocListCastAsync(minimizedDoc.maximizedDocs)); } }); } |
