psa: Fixed article view jumping back to a previously opened article
authorYves <yves@marcoz.org>
Tue, 3 Jan 2012 23:12:12 +0000 (15:12 -0800)
committerYves <yves@marcoz.org>
Tue, 3 Jan 2012 23:12:12 +0000 (15:12 -0800)
psa_harmattan/feedingit/qml/ArticleViewer.qml

index 7e58501..c8e59e0 100644 (file)
@@ -69,7 +69,7 @@ Item {
         width: parent.width;
         height: updateBarArticles.visible? parent.height-updateBarArticles.height : parent.height;
         visible: false; z:8
-        //onCurrentIndexChanged: photosGridView.positionViewAtIndex(currentIndex, GridView.Contain)
+        onCurrentIndexChanged: articlesView.positionViewAtIndex(currentIndex, ListView.Contain)
         highlightRangeMode: ListView.StrictlyEnforceRange; snapMode: ListView.SnapOneItem
         //cacheBuffer: 5;
         onMovementStarted: articleViewer.vertPanningEnabled=false;
@@ -165,7 +165,7 @@ Item {
                     font.pointSize: settings.articleListingTextSize
                 }
                 MouseArea { anchors.fill: listItem;
-                    onClicked: { articleView.positionViewAtIndex(index, ListView.Contain); articleView.visible = true; }
+                    onClicked: { articleView.currentIndex = index; articleView.visible = true; }
                 }
             }