Commit e56308b8 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Collapse): supports `targetHeight` attribute

parent 9d9e55c5
...@@ -9,7 +9,8 @@ import Common.Styles 1.0 ...@@ -9,7 +9,8 @@ import Common.Styles 1.0
Item { Item {
id: collapse id: collapse
property var target property alias target: targetChanges.target
property int targetHeight
property bool _collapsed: false property bool _collapsed: false
...@@ -50,13 +51,12 @@ Item { ...@@ -50,13 +51,12 @@ Item {
} }
PropertyChanges { PropertyChanges {
target: collapse.target id: targetChanges
height: 480
maximumHeight: 99999
maximumWidth: 99999
minimumHeight: 480
height: collapse.targetHeight
maximumHeight: 99999
maximumWidth: 99999
minimumHeight: collapse.targetHeight
} }
} }
......
...@@ -134,7 +134,7 @@ Item { ...@@ -134,7 +134,7 @@ Item {
} }
ScriptAction { ScriptAction {
script: menuopened() script: menuOpened()
} }
} }
}, },
......
...@@ -42,6 +42,7 @@ ApplicationWindow { ...@@ -42,6 +42,7 @@ ApplicationWindow {
Layout.fillHeight: parent.height Layout.fillHeight: parent.height
Layout.preferredWidth: 25 Layout.preferredWidth: 25
target: window target: window
targetHeight: 480
} }
// User info. // User info.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment