feat(Collapse): supports targetHeight attribute

This commit is contained in:
Ronan Abhamon 2016-10-26 11:55:45 +02:00
parent 9d9e55c5d3
commit e56308b8a8
3 changed files with 9 additions and 8 deletions

View file

@ -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
}
}

View file

@ -134,7 +134,7 @@ Item {
}
ScriptAction {
script: menuopened()
script: menuOpened()
}
}
},

View file

@ -42,6 +42,7 @@ ApplicationWindow {
Layout.fillHeight: parent.height
Layout.preferredWidth: 25
target: window
targetHeight: 480
}
// User info.