aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-11-10 17:45:50 -0500
committerbobzel <zzzman@gmail.com>2020-11-10 17:45:50 -0500
commite14f9c12eba91bb5ecd3935ccbd3d20928e263a9 (patch)
tree252e1d67624f2e99abdc0b08b4632070bf1a31a9 /src/client/views/collections
parent28dccafaa4aa446dd88c1b6f4218a0d7f79fa1bb (diff)
fixes for tree view to display embedded documents correclty -- nested collections didn't have a width before and vertical sizing was off.
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/TreeView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index 925eb4be6..2c504a020 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -281,7 +281,7 @@ export class TreeView extends React.Component<TreeViewProps> {
const layoutDoc = this.layoutDoc;
const aspect = Doc.NativeAspect(layoutDoc);
if (aspect) return Math.min(layoutDoc[WidthSym](), Math.min(this.MAX_EMBED_HEIGHT * aspect, this.props.panelWidth() - 20));
- return Doc.NativeWidth(layoutDoc) ? Math.min(layoutDoc[WidthSym](), this.props.panelWidth() - 20) : this.props.panelWidth() - 20;
+ return Doc.NativeWidth(layoutDoc) ? Math.min(layoutDoc[WidthSym](), this.props.panelWidth() - 20) : Math.min(this.layoutDoc[WidthSym](), this.props.panelWidth() - 20);
}
docHeight = () => {
const layoutDoc = this.layoutDoc;