size header explicitly for content size

otherwise it just grows with max-height
pull/21833/head
Bruno Windels 2019-01-09 15:45:47 +01:00
parent 0803ea9158
commit b82e19b1f7
1 changed files with 3 additions and 2 deletions

View File

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