aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionTreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-04-05 15:46:24 -0400
committerbobzel <zzzman@gmail.com>2021-04-05 15:46:24 -0400
commit647d49f4d33eada3cbd3a6e679d6097a76234f1d (patch)
tree7b387877c76a21c90d19709a40ac753fec8ec7ef /src/client/views/collections/CollectionTreeView.tsx
parent27d385f999d66eba973a5beccaa4dd239eb6c57b (diff)
fixes for docfilter autoheight
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
-rw-r--r--src/client/views/collections/CollectionTreeView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx
index b97d11629..a9e73583d 100644
--- a/src/client/views/collections/CollectionTreeView.tsx
+++ b/src/client/views/collections/CollectionTreeView.tsx
@@ -65,8 +65,9 @@ export class CollectionTreeView extends CollectionSubView<Document, Partial<coll
refList: Set<any> = new Set();
observer: any;
computeHeight = () => {
- this.rootDoc._height = this.paddingTop() + 26/* bcz: ugh: title bar height hack ... get ref and compute instead */ +
+ const hgt = this.paddingTop() + 26/* bcz: ugh: title bar height hack ... get ref and compute instead */ +
Array.from(this.refList).reduce((p, r) => p + Number(getComputedStyle(r).height.replace("px", "")), 0);
+ this.props.setHeight(hgt);
}
unobserveHeight = (ref: any) => this.refList.delete(ref);
observerHeight = (ref: any) => {