on xenial help sign in
fixed up animation anchoring
commita306ae0694d8ad271f29d3d2973514b11c6a717a authorNick Dedekind <nick.dedekind@canonical.com> dateFri 29 Aug 2014, 16:58 (12 years ago) parentbd9428e
1 file changed+9−6
qml/Stages/Animations/SwipeFromBottomAnimation.qml+9−6
qml/Stages/Animations/SwipeFromBottomAnimation.qml+9−6
@@ -20,12 +20,17 @@ import Ubuntu.Components 1.1
2020BaseSessionAnimation {
2121 id: animation
2222
23− outChanges: [ AnchorChanges { target: surfaceContainer; anchors.top: sessionContainer.bottom } ]
23+ outChanges: [ AnchorChanges {
24+ target: surfaceContainer;
25+ anchors.top: sessionContainer.bottom
26+ anchors.right: sessionContainer.right
27+ anchors.left: sessionContainer.left
28+ }
29+ ]
2430 outAnimations: [
2531 SequentialAnimation {
2632 PropertyAction { target: sessionContainer; property: "clip"; value: true }
2733 AnchorAnimation { easing: UbuntuAnimation.StandardEasing; duration: UbuntuAnimation.BriskDuration }
28− PropertyAction { target: surfaceContainer; property: "visible"; value: !sessionContainer.removing }
2934 PropertyAction { target: sessionContainer; property: "clip"; value: false }
3035 ScriptAction { script: { sessionContainer.session.release(); } }
3136 }
@@ -34,10 +39,8 @@ BaseSessionAnimation {
3439 inChanges: [
3540 AnchorChanges {
3641 target: surfaceContainer;
37− anchors.top: animation.parent.top
38− anchors.right: undefined
39− anchors.bottom: undefined
40− anchors.left: undefined
42+ anchors.top: sessionContainer.top
43+ anchors.bottom: sessionContainer.bottom
4144 } ]
4245 inAnimations: [
4346 SequentialAnimation {