size header explicitly for content size
otherwise it just grows with max-height
This commit is contained in:
parent
0803ea9158
commit
b82e19b1f7
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue