aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx4
1 files changed, 2 insertions, 2 deletions
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<Partial<collection
);
// reset section headers when a new filter is inputted
this._disposers.width = reaction(
- () => [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);
}
}