@@ -44,18 +44,26 @@ Showable {
45 // TODO: Perhaps we need a animation standard for showing/hiding? Each showable seems to
45 // TODO: Perhaps we need a animation standard for showing/hiding? Each showable seems to
46 // use its own values. Need to ask design about this.
46 // use its own values. Need to ask design about this.
47+ showAnimation: SequentialAnimation {
47− showAnimation: StandardAnimation {
48+ StandardAnimation {
48− property: "height"
49+ property: "height"
49− to: openedHeight
50+ to: openedHeight
50− duration: UbuntuAnimation.BriskDuration
51+ duration: UbuntuAnimation.BriskDuration
51− easing.type: Easing.OutCubic
52+ easing.type: Easing.OutCubic
54+ // set binding in case units.gu changes while menu open, so height correctly adjusted to fit
55+ ScriptAction { script: root.height = Qt.binding( function(){ return root.openedHeight; } ) }
58+ hideAnimation: SequentialAnimation {
54− hideAnimation: StandardAnimation {
59+ StandardAnimation {
55− property: "height"
60+ property: "height"
56− to: minimizedPanelHeight
61+ to: minimizedPanelHeight
57− duration: UbuntuAnimation.BriskDuration
62+ duration: UbuntuAnimation.BriskDuration
58− easing.type: Easing.OutCubic
63+ easing.type: Easing.OutCubic
65+ // set binding in case units.gu changes while menu closed, so menu adjusts to fit
66+ ScriptAction { script: root.height = Qt.binding( function(){ return root.minimizedPanelHeight; } ) }
61 height: minimizedPanelHeight
69 height: minimizedPanelHeight