diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-07-20 19:57:36 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-07-20 21:51:52 -0400 |
commit | d33538316c81b548e9b6724afc3486c17ad925f2 (patch) | |
tree | 23a5209f904fe66bc1b42bd8f8653a7121d5ba09 /resources | |
parent | Fix elided width (diff) | |
download | nheko-d33538316c81b548e9b6724afc3486c17ad925f2.tar.xz |
Fix the loading spinner setup
This fixes binding loops and gives it a (in my opinion) sane size.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/RoomMembers.qml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/resources/qml/RoomMembers.qml b/resources/qml/RoomMembers.qml index 6f847ccc..3758cb0b 100644 --- a/resources/qml/RoomMembers.qml +++ b/resources/qml/RoomMembers.qml @@ -118,11 +118,21 @@ ApplicationWindow { } - footer: Spinner { - visible: members.numUsersLoaded < members.memberCount && members.loadingMoreMembers + footer: Item { + width: parent.width + visible: (members.numUsersLoaded < members.memberCount) && members.loadingMoreMembers + // use the default height if it's visible, otherwise no height at all - height: visible ? undefined : 0 - anchors.centerIn: parent + height: membersLoadingSpinner.height + anchors.margins: Nheko.paddingMedium + + Spinner { + id: membersLoadingSpinner + + anchors.centerIn: parent + height: visible ? 35 : 0 + } + } } |