diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-14 22:27:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-14 22:27:17 -0400 |
| commit | e0240412990f102523b86e324bc973cd2ed523a1 (patch) | |
| tree | 6c4c98dcb871bd62f9f7204e792d84f2cc7003e5 /src/client/views/collections/TreeView.tsx | |
| parent | 7ab2011d3b6bb7bb2e945265d4ff97983a5a1f38 (diff) | |
refactored a bunch of names in MainView. Fixed scrolling in left menu flyout treeview panels.
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
| -rw-r--r-- | src/client/views/collections/TreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index aa7b164b0..4fc25752f 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -869,7 +869,7 @@ export class TreeView extends React.Component<TreeViewProps> { const childLayout = Doc.Layout(pair.layout); const rowHeight = () => { const aspect = Doc.NativeAspect(childLayout); - return aspect ? Math.min(childLayout[WidthSym](), rowWidth()) / aspect : childLayout[HeightSym](); + return (aspect ? Math.min(childLayout[WidthSym](), rowWidth()) / aspect : childLayout[HeightSym]()); }; return <TreeView key={child[Id]} ref={r => treeViewRefs.set(child, r ? r : undefined)} document={pair.layout} |
