aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionGrid/CollectionGridView.tsx5
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 ec142f7a5..4b9365838 100644
--- a/src/client/views/collections/collectionGrid/CollectionGridView.tsx
+++ b/src/client/views/collections/collectionGrid/CollectionGridView.tsx
@@ -197,9 +197,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]);
@@ -229,6 +227,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;