diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-11 22:43:58 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-11 22:43:58 -0400 |
| commit | 4632a7544aa337d8ebecfd560fe5faee702d7806 (patch) | |
| tree | ce5e5f847cab1aa45d3ab70f311a74448b08e5e5 | |
| parent | af374bfbf3a218528bca426911f4de83e3466872 (diff) | |
from last
| -rw-r--r-- | src/client/views/collections/collectionGrid/CollectionGridView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionGrid/CollectionGridView.tsx b/src/client/views/collections/collectionGrid/CollectionGridView.tsx index 2e1f7a0db..562ba7933 100644 --- a/src/client/views/collections/collectionGrid/CollectionGridView.tsx +++ b/src/client/views/collections/collectionGrid/CollectionGridView.tsx @@ -222,7 +222,7 @@ export class CollectionGridView extends CollectionSubView(GridSchema) { this.parsedLayoutList.map(({ i, x, y, w, h }) => ({ i, y, h, x: x + w > this.numCols ? 0 : x, // handles wrapping around of nodes when numCols decreases - w: Math.max(w, this.numCols), // reduces width if greater than numCols + w: Math.min(w, this.numCols), // reduces width if greater than numCols static: BoolCast(this.childLayoutPairs.find(({ layout }) => layout[Id] === i)?.layout.lockedPosition, false) // checks if the lock position item has been selected in the context menu })) : this.parsedLayoutList.map((layout, index) => Object.assign(layout, this.unflexedPosition(index))); |
