size header explicitly for content size

otherwise it just grows with max-height
This commit is contained in:
Bruno Windels 2019-01-09 15:45:47 +01:00
parent 0803ea9158
commit b82e19b1f7

View file

@ -65,8 +65,9 @@ class RoomDistributor {
_contentSize(item) { _contentSize(item) {
const scrollItem = item.domNode.querySelector(".mx_RoomSubList_scroll"); const scrollItem = item.domNode.querySelector(".mx_RoomSubList_scroll");
const headerHeight = item.size() - scrollItem.offsetHeight; const header = item.domNode.querySelector(".mx_RoomSubList_labelContainer");
return headerHeight + scrollItem.scrollHeight + 4; const headerHeight = item.sizer.getItemSize(header);
return headerHeight + scrollItem.scrollHeight;
} }
resize(size) { resize(size) {