aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-06-11 22:43:58 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-06-11 22:43:58 -0400
commit4632a7544aa337d8ebecfd560fe5faee702d7806 (patch)
treece5e5f847cab1aa45d3ab70f311a74448b08e5e5
parentaf374bfbf3a218528bca426911f4de83e3466872 (diff)
from last
-rw-r--r--src/client/views/collections/collectionGrid/CollectionGridView.tsx2
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)));