From e127b961588b182e05752838912fa3edd011e254 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 20 Aug 2019 13:12:40 -0400 Subject: [PATCH] Fix collapsed sidepane spacing for the nth time --- src/qml/SidePane/DelegateRoom.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/qml/SidePane/DelegateRoom.qml b/src/qml/SidePane/DelegateRoom.qml index 7c966f9d..a45ef2fd 100644 --- a/src/qml/SidePane/DelegateRoom.qml +++ b/src/qml/SidePane/DelegateRoom.qml @@ -57,10 +57,13 @@ HInteractiveRectangle { HRowLayout { id: rowLayout + property var pr: sidePane.currentSpacing + onPrChanged: print("pr changed:", pr, spacing, x) + spacing: sidePane.currentSpacing - x: spacing - width: parent.width - spacing * 1.75 - height: roomName.height + subtitle.height + spacing + x: sidePane.currentSpacing + width: parent.width - sidePane.currentSpacing * 1.75 + height: roomName.height + subtitle.height + sidePane.currentSpacing HRoomAvatar { id: roomAvatar