From 13a5b32b04e65c154aeb12190e761d8174b858e9 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Fri, 1 Mar 2019 22:17:50 -0500 Subject: some fixes --- src/client/views/collections/CollectionFreeFormView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/views/collections/CollectionFreeFormView.tsx') 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) }} />); }) -- cgit v1.2.3-70-g09d2