fix volume panel disappearing: use animateHeight, remove inner height animation
This commit is contained in:
parent
8eaf64eac6
commit
8c915605f2
1 changed files with 1 additions and 10 deletions
|
|
@ -107,6 +107,7 @@ M.BarSection {
|
||||||
accentColor: root.accentColor
|
accentColor: root.accentColor
|
||||||
panelNamespace: "nova-volume"
|
panelNamespace: "nova-volume"
|
||||||
contentWidth: 220
|
contentWidth: 220
|
||||||
|
animateHeight: true
|
||||||
|
|
||||||
// Compact: slider row
|
// Compact: slider row
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -230,16 +231,6 @@ M.BarSection {
|
||||||
id: deviceList
|
id: deviceList
|
||||||
width: parent.width
|
width: parent.width
|
||||||
visible: root._expanded
|
visible: root._expanded
|
||||||
clip: true
|
|
||||||
|
|
||||||
property real _targetHeight: root._expanded ? implicitHeight : 0
|
|
||||||
height: _targetHeight
|
|
||||||
Behavior on height {
|
|
||||||
NumberAnimation {
|
|
||||||
duration: 200
|
|
||||||
easing.type: Easing.OutCubic
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Separator
|
// Separator
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue