on xenial help sign in
fixed up animation anchoring
a306ae0Nick Dedekind
qml/Stages/Animations/SwipeFromBottomAnimation.qml+9−6
@@ -20,12 +20,17 @@ import Ubuntu.Components 1.1
20BaseSessionAnimation {
20BaseSessionAnimation {
21 id: animation
21 id: animation
22
22
23+ outChanges: [ AnchorChanges {
24+ target: surfaceContainer;
23− outChanges: [ AnchorChanges { target: surfaceContainer; anchors.top: sessionContainer.bottom } ]
25+ anchors.top: sessionContainer.bottom
26+ anchors.right: sessionContainer.right
27+ anchors.left: sessionContainer.left
28+ }
29+ ]
24 outAnimations: [
30 outAnimations: [
25 SequentialAnimation {
31 SequentialAnimation {
26 PropertyAction { target: sessionContainer; property: "clip"; value: true }
32 PropertyAction { target: sessionContainer; property: "clip"; value: true }
27 AnchorAnimation { easing: UbuntuAnimation.StandardEasing; duration: UbuntuAnimation.BriskDuration }
33 AnchorAnimation { easing: UbuntuAnimation.StandardEasing; duration: UbuntuAnimation.BriskDuration }
28− PropertyAction { target: surfaceContainer; property: "visible"; value: !sessionContainer.removing }
29 PropertyAction { target: sessionContainer; property: "clip"; value: false }
34 PropertyAction { target: sessionContainer; property: "clip"; value: false }
30 ScriptAction { script: { sessionContainer.session.release(); } }
35 ScriptAction { script: { sessionContainer.session.release(); } }
31 }
36 }
@@ -34,10 +39,8 @@ BaseSessionAnimation {
34 inChanges: [
39 inChanges: [
35 AnchorChanges {
40 AnchorChanges {
36 target: surfaceContainer;
41 target: surfaceContainer;
37− anchors.top: animation.parent.top
42+ anchors.top: sessionContainer.top
38− anchors.right: undefined
43+ anchors.bottom: sessionContainer.bottom
39− anchors.bottom: undefined
40− anchors.left: undefined
41 } ]
44 } ]
42 inAnimations: [
45 inAnimations: [
43 SequentialAnimation {
46 SequentialAnimation {