From 3a05d9bd60c95f48072172670259d362aa63a9a1 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 12 Jul 2019 18:17:02 -0400 Subject: [PATCH] Fix side panes spacing animation --- src/qml/Chat/RoomSidePane/RoomSidePane.qml | 4 ++-- src/qml/SidePane/SidePane.qml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qml/Chat/RoomSidePane/RoomSidePane.qml b/src/qml/Chat/RoomSidePane/RoomSidePane.qml index f6bd9c1d..e2432c8d 100644 --- a/src/qml/Chat/RoomSidePane/RoomSidePane.qml +++ b/src/qml/Chat/RoomSidePane/RoomSidePane.qml @@ -12,9 +12,9 @@ HRectangle { property var activeView: null property int normalSpacing: 8 - readonly property int currentSpacing: collapsed ? 0 : normalSpacing + property int currentSpacing: collapsed ? 0 : normalSpacing - Behavior on normalSpacing { HNumberAnimation {} } + Behavior on currentSpacing { HNumberAnimation {} } MembersView { anchors.fill: parent diff --git a/src/qml/SidePane/SidePane.qml b/src/qml/SidePane/SidePane.qml index db362bcc..2160aeae 100644 --- a/src/qml/SidePane/SidePane.qml +++ b/src/qml/SidePane/SidePane.qml @@ -13,7 +13,9 @@ HRectangle { property bool collapsed: false property int normalSpacing: 8 - readonly property int currentSpacing: collapsed ? 0 : normalSpacing + property int currentSpacing: collapsed ? 0 : normalSpacing + + Behavior on currentSpacing { HNumberAnimation {} } HColumnLayout { anchors.fill: parent @@ -24,8 +26,6 @@ HRectangle { spacing: currentSpacing bottomMargin: currentSpacing - - Behavior on spacing { HNumberAnimation {} } } PaneToolBar {