Fix side panes spacing animation

This commit is contained in:
miruka 2019-07-12 18:17:02 -04:00
parent 338986f022
commit 3a05d9bd60
2 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,9 @@ HRectangle {
property var activeView: null property var activeView: null
property int normalSpacing: 8 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 { MembersView {
anchors.fill: parent anchors.fill: parent

View File

@ -13,7 +13,9 @@ HRectangle {
property bool collapsed: false property bool collapsed: false
property int normalSpacing: 8 property int normalSpacing: 8
readonly property int currentSpacing: collapsed ? 0 : normalSpacing property int currentSpacing: collapsed ? 0 : normalSpacing
Behavior on currentSpacing { HNumberAnimation {} }
HColumnLayout { HColumnLayout {
anchors.fill: parent anchors.fill: parent
@ -24,8 +26,6 @@ HRectangle {
spacing: currentSpacing spacing: currentSpacing
bottomMargin: currentSpacing bottomMargin: currentSpacing
Behavior on spacing { HNumberAnimation {} }
} }
PaneToolBar { PaneToolBar {