aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-09 00:08:27 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-09 00:08:27 +0200
commit73ca4da6c94dd2f3f7296b7af053db6ce6b35770 (patch)
tree60413c10c1c75169c04d1531194edb8650757785
parent31dac522422adef518a8715b8777adffe3f4c146 (diff)
parent17add2d75e36b5f9f224d2234db55dc9c68f7fee (diff)
downloadmonzero-gui-73ca4da6c94dd2f3f7296b7af053db6ce6b35770.tar.gz
monzero-gui-73ca4da6c94dd2f3f7296b7af053db6ce6b35770.tar.xz
monzero-gui-73ca4da6c94dd2f3f7296b7af053db6ce6b35770.zip
Merge pull request #238
17add2d middlePanel: fix anchor error (Jaquee) 3d16f73 tabs: page transition left to right (Jaquee)
-rw-r--r--MiddlePanel.qml21
1 files changed, 20 insertions, 1 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml
index c24466f3..3917fdd3 100644
--- a/MiddlePanel.qml
+++ b/MiddlePanel.qml
@@ -272,9 +272,28 @@ Rectangle {
anchors.topMargin: 30
Layout.fillWidth: true
Layout.fillHeight: true
- anchors.top: styledRow.bottom
+ anchors.top: parent.top
anchors.margins: 4
clip: true // otherwise animation will affect left panel
+
+ delegate: StackViewDelegate {
+ pushTransition: StackViewTransition {
+ PropertyAnimation {
+ target: enterItem
+ property: "x"
+ from: 0 - target.width
+ to: 0
+ duration: 300
+ }
+ PropertyAnimation {
+ target: exitItem
+ property: "x"
+ from: 0
+ to: target.width
+ duration: 300
+ }
+ }
+ }
}
}
// border