[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kirigami/mart/Kirigami2] src/controls/templates/private: update currentIndex upon pops
From: Marco Martin <notmart () gmail ! com>
Date: 2016-11-30 18:55:43
Message-ID: E1cCA2h-0005GC-5V () code ! kde ! org
[Download RAW message or body]
Git commit aa587beb0d4d7f3023710d0ad7f98a7679a0e715 by Marco Martin.
Committed on 30/11/2016 at 16:47.
Pushed by mart into branch 'mart/Kirigami2'.
update currentIndex upon pops
M +3 -0 src/controls/templates/private/PageRow.qml
https://commits.kde.org/kirigami/aa587beb0d4d7f3023710d0ad7f98a7679a0e715
diff --git a/src/controls/templates/private/PageRow.qml b/src/controls/templates/private/PageRow.qml
index 059b39e..7b82af1 100644
--- a/src/controls/templates/private/PageRow.qml
+++ b/src/controls/templates/private/PageRow.qml
@@ -373,6 +373,9 @@ Item {
easing.type: Easing.InOutQuad
}
}
+ onChildrenChanged: {
+ mainFlickable.currentIndex = Math.min(mainFlickable.currentIndex, children.length-1);
+ }
onWidthChanged: {
//current item in view
if (children[mainFlickable.currentIndex].x >= mainFlickable.contentX &&
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic