aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-03 23:58:49 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-03 23:58:49 -0400
commit644cf9b52bd59221167f4edd840a45941e1a238a (patch)
tree4158698f18f5a45241d17c27384479182e3690d5 /src/client/views/collections
parentd3b45f966bbd8aa5e8f1bf7d115c5a4859b01889 (diff)
from last
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 23d701ffd..c4f9e873c 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -282,7 +282,7 @@ export class CollectionView extends Touchable<FieldViewProps> {
bodyPanelWidth = () => this.props.PanelWidth() - this.facetWidth();
getTransform = () => this.props.ScreenToLocalTransform().translate(-this.facetWidth(), 0);
- facetWidth = () => Math.min(this.props.PanelWidth() - 25, this._facetWidth);
+ facetWidth = () => Math.max(0, Math.min(this.props.PanelWidth() - 25, this._facetWidth));
@computed get dataDoc() {
return (this.props.DataDoc && this.props.Document.isTemplateForField ? Doc.GetProto(this.props.DataDoc) :