From d5eb3271f705b62deb20d6044a9f9e1562ab9ae4 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 7 Mar 2025 11:06:31 -0500 Subject: changed masonryView so that if column count is set w/o a columnWidth, then it stays fixed --- src/client/views/collections/CollectionStackingView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 72e6bb8f2..6bbd43b1b 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -239,9 +239,9 @@ export class CollectionStackingView extends CollectionSubView [this._props.PanelWidth() - 2 * this.xMargin, NumCast(this.Document._layout_columnWidth, 250)], + () => [this._props.PanelWidth() - 2 * this.xMargin, NumCast(this.Document._layout_columnWidth)], ([pw, cw]) => { - if (!this.isStackingView && Math.round(pw / cw)) { + if (cw && !this.isStackingView && Math.round(pw / cw)) { this.layoutDoc._layout_columnCount = Math.round(pw / cw); } } -- cgit v1.2.3-70-g09d2