diff options
| author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-06-12 18:34:18 +0530 |
|---|---|---|
| committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-06-12 18:34:18 +0530 |
| commit | fe76b8389aa8674974cea33848a4daf383097b63 (patch) | |
| tree | 2c5a6739b0b5d1b3c96d1aea47e47592689d973a /src | |
| parent | 747ae83d5b70b7e9b2d3755aa9e402dbf1c6ae5e (diff) | |
| parent | cd2b06628e4ea1a714e6352428e50383767cb1ef (diff) | |
Merge branch 'grid_view_secondary' of https://github.com/browngraphicslab/Dash-Web into grid_view_secondary
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/views/collections/collectionGrid/CollectionGridView.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/collectionGrid/CollectionGridView.tsx b/src/client/views/collections/collectionGrid/CollectionGridView.tsx index 87d7d945a..645a89563 100644 --- a/src/client/views/collections/collectionGrid/CollectionGridView.tsx +++ b/src/client/views/collections/collectionGrid/CollectionGridView.tsx @@ -199,9 +199,7 @@ export class CollectionGridView extends CollectionSubView(GridSchema) { private get contents(): JSX.Element[] { const collector: JSX.Element[] = []; const layouts = this.parsedLayoutList; - if (layouts.length !== this.childLayoutPairs.length) { - setTimeout(action(() => this.props.Document.gridResetLayout = true), 0); - } else { + if (layouts.length == this.childLayoutPairs.length) { this.layoutList.forEach((l, i) => { const child = this.childLayoutPairs.find(c => c.layout[Id] === l.i); const dxf = () => this.lookupIndividualTransform(layouts[i]); @@ -231,6 +229,7 @@ export class CollectionGridView extends CollectionSubView(GridSchema) { this.parsedLayoutList.map((layout, index) => Object.assign(layout, this.unflexedPosition(index))); } + @action onInternalDrop = (e: Event, de: DragManager.DropEvent) => { const layouts = this.parsedLayoutList; const dropped = de.complete.docDragData?.droppedDocuments; |
