diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-01-19 21:55:30 -0500 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-01-19 21:55:30 -0500 |
commit | 08e2d1fd54824a1e8638a66ff031253ae72ab77b (patch) | |
tree | 83c690909b0835241f4b9d08082371e4e988f9a8 /src/views/freeformcanvas/CollectionFreeFormView.tsx | |
parent | a0fadfc2017632dc17455ecf5fe7dd669834e887 (diff) |
resizing!
Diffstat (limited to 'src/views/freeformcanvas/CollectionFreeFormView.tsx')
-rw-r--r-- | src/views/freeformcanvas/CollectionFreeFormView.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/views/freeformcanvas/CollectionFreeFormView.tsx b/src/views/freeformcanvas/CollectionFreeFormView.tsx index 9a4f5ffa1..4e9e0cd21 100644 --- a/src/views/freeformcanvas/CollectionFreeFormView.tsx +++ b/src/views/freeformcanvas/CollectionFreeFormView.tsx @@ -9,6 +9,7 @@ import { DocumentView } from "../nodes/DocumentView"; import { ListField } from "../../fields/ListField"; import { NumberField } from "../../fields/NumberField"; import { SSL_OP_SINGLE_DH_USE } from "constants"; +import { DocumentDecorations } from "../../DocumentDecorations"; interface IProps { fieldKey: Key; @@ -60,14 +61,13 @@ export class CollectionFreeFormView extends React.Component<IProps> { } const { doc } = this.props; - // if docView is selected, pan, else dont pan - console.log(this.props.isSelected) - - let x = doc.GetFieldValue(KeyStore.PanX, NumberField, Number(0)); let y = doc.GetFieldValue(KeyStore.PanY, NumberField, Number(0)); doc.SetFieldValue(KeyStore.PanX, x + e.movementX, NumberField); doc.SetFieldValue(KeyStore.PanY, y + e.movementY, NumberField); + + + DocumentDecorations.Instance.forceUpdate() } @action |