Fix roomList height calculation

This commit is contained in:
miruka 2019-04-13 06:28:24 -04:00
parent 30514fb7db
commit d8c6ffefe0
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ ColumnLayout {
Layout.minimumHeight: Layout.minimumHeight:
roomList.visible ? roomList.visible ?
800 : roomList.contentHeight :
0 0
Layout.maximumHeight: Layout.minimumHeight Layout.maximumHeight: Layout.minimumHeight

View File

@ -9,7 +9,7 @@ ListView {
property int contentHeight: 0 property int contentHeight: 0
onCountChanged: { onCountChanged: {
var children = roomList.children var children = roomList.contentItem.children
var childrenHeight = 0 var childrenHeight = 0
for (var i = 0; i < children.length; i++) { for (var i = 0; i < children.length; i++) {