Fix roomList height calculation
This commit is contained in:
parent
30514fb7db
commit
d8c6ffefe0
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user