mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 10:29:24 +00:00
feat(Collapse): supports targetHeight attribute
This commit is contained in:
parent
9d9e55c5d3
commit
e56308b8a8
3 changed files with 9 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue