From d8c6ffefe0f5780e6943806f11794aa9dc4dfc85 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 13 Apr 2019 06:28:24 -0400 Subject: [PATCH] Fix roomList height calculation --- harmonyqml/components/side_pane/AccountDelegate.qml | 2 +- harmonyqml/components/side_pane/RoomList.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/harmonyqml/components/side_pane/AccountDelegate.qml b/harmonyqml/components/side_pane/AccountDelegate.qml index 1d90baf0..8dc7a29a 100644 --- a/harmonyqml/components/side_pane/AccountDelegate.qml +++ b/harmonyqml/components/side_pane/AccountDelegate.qml @@ -71,7 +71,7 @@ ColumnLayout { Layout.minimumHeight: roomList.visible ? - 800 : + roomList.contentHeight : 0 Layout.maximumHeight: Layout.minimumHeight diff --git a/harmonyqml/components/side_pane/RoomList.qml b/harmonyqml/components/side_pane/RoomList.qml index 3b3c733e..64cccd7b 100644 --- a/harmonyqml/components/side_pane/RoomList.qml +++ b/harmonyqml/components/side_pane/RoomList.qml @@ -9,7 +9,7 @@ ListView { property int contentHeight: 0 onCountChanged: { - var children = roomList.children + var children = roomList.contentItem.children var childrenHeight = 0 for (var i = 0; i < children.length; i++) {