diff options
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; |