aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-01 11:04:50 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-01 11:04:50 -0400
commitec6fad019548f3cfcdfcfe7f3268a2cc5392799a (patch)
tree4fad44a7b83e72b38f89c5042bd1113244e877d5
parent286506df723ae88ee9e5bf4901cc1cf224b357d5 (diff)
fixed preview switch for schema view
-rw-r--r--src/client/views/collections/CollectionViewChromes.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx
index 53ee4c547..960c6554e 100644
--- a/src/client/views/collections/CollectionViewChromes.tsx
+++ b/src/client/views/collections/CollectionViewChromes.tsx
@@ -600,7 +600,7 @@ export class CollectionSchemaViewChrome extends React.Component<CollectionViewCh
togglePreview = () => {
const dividerWidth = 4;
const borderWidth = Number(COLLECTION_BORDER_WIDTH);
- const panelWidth = this.props.PanelWidth();
+ const panelWidth = this.props.CollectionView.props.PanelWidth();
const previewWidth = NumCast(this.props.CollectionView.props.Document.schemaPreviewWidth);
const tableWidth = panelWidth - 2 * borderWidth - dividerWidth - previewWidth;
this.props.CollectionView.props.Document.schemaPreviewWidth = previewWidth === 0 ? Math.min(tableWidth / 3, 200) : 0;