aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-03-01 22:17:50 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-03-01 22:17:50 -0500
commit13a5b32b04e65c154aeb12190e761d8174b858e9 (patch)
tree8727edb1291c7c7be4d2eed9c07fd936dcd2db85 /src/client/views/collections/CollectionFreeFormView.tsx
parent98ade639c6ffa6cc704cc310af506973d83e494b (diff)
some fixes
Diffstat (limited to 'src/client/views/collections/CollectionFreeFormView.tsx')
-rw-r--r--src/client/views/collections/CollectionFreeFormView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx
index fe2fc42ad..5cb97696d 100644
--- a/src/client/views/collections/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/CollectionFreeFormView.tsx
@@ -193,11 +193,11 @@ export class CollectionFreeFormView extends CollectionViewBase {
PanelWidth={doc.Width}
PanelHeight={doc.Height}
ContainingCollectionView={this.props.CollectionView}
- focus={(doc: Document, x: number, y: number) => {
+ focus={(doc: Document) => {
//set pan of colleciton freeform and then call parent
console.log("calling...")
- DocumentManager.Instance.centerNode(doc, doc.GetNumber(KeyStore.X, 0), doc.GetNumber(KeyStore.Y, 0))
- this.props.focus(this.props.Document, doc.GetNumber(KeyStore.X, 0), doc.GetNumber(KeyStore.Y, 0))
+ DocumentManager.Instance.centerNode(doc, this.props.Document)
+ this.props.focus(this.props.Document)
}}
/>);
})