Fix side panes spacing animation
This commit is contained in:
parent
338986f022
commit
3a05d9bd60
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user