diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-01 22:17:50 -0500 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-01 22:17:50 -0500 |
| commit | 13a5b32b04e65c154aeb12190e761d8174b858e9 (patch) | |
| tree | 8727edb1291c7c7be4d2eed9c07fd936dcd2db85 /src/client/views/collections | |
| parent | 98ade639c6ffa6cc704cc310af506973d83e494b (diff) | |
some fixes
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionFreeFormView.tsx | 6 | ||||
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 2 | ||||
| -rw-r--r-- | src/client/views/collections/CollectionViewBase.tsx | 2 |
3 files changed, 5 insertions, 5 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) }} />); }) diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 4eaf585ce..4a4abbea9 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -212,7 +212,7 @@ export class CollectionSchemaView extends CollectionViewBase { PanelWidth={this.getPanelWidth} PanelHeight={this.getPanelHeight} ContainingCollectionView={this.props.CollectionView} - focus={(doc, x, y) => this.props.focus(this.props.Document, x, y)} + focus={(doc) => this.props.focus(this.props.Document)} /> </div> } diff --git a/src/client/views/collections/CollectionViewBase.tsx b/src/client/views/collections/CollectionViewBase.tsx index d9e43c0dc..1fff3a470 100644 --- a/src/client/views/collections/CollectionViewBase.tsx +++ b/src/client/views/collections/CollectionViewBase.tsx @@ -23,7 +23,7 @@ export interface CollectionViewProps { bindings: any; panelWidth: () => number; panelHeight: () => number; - focus: (doc: Document, x: number, y: number) => void; + focus: (doc: Document) => void; } export interface SubCollectionViewProps extends CollectionViewProps { active: () => boolean; |
