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
Item {
id: collapse
property var target
property alias target: targetChanges.target
property int targetHeight
property bool _collapsed: false
......@@ -50,13 +51,12 @@ Item {
}
PropertyChanges {
target: collapse.target
height: 480
maximumHeight: 99999
maximumWidth: 99999
minimumHeight: 480
id: targetChanges
height: collapse.targetHeight
maximumHeight: 99999
maximumWidth: 99999
minimumHeight: collapse.targetHeight
}
}
......
......@@ -134,7 +134,7 @@ Item {
}
ScriptAction {
script: menuopened()
script: menuOpened()
}
}
},
......
......@@ -42,6 +42,7 @@ ApplicationWindow {
Layout.fillHeight: parent.height
Layout.preferredWidth: 25
target: window
targetHeight: 480
}
// 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