From: Yves Date: Tue, 3 Jan 2012 23:12:12 +0000 (-0800) Subject: psa: Fixed article view jumping back to a previously opened article X-Git-Url: https://vcs.maemo.org/git/?p=feedingit;a=commitdiff_plain;h=4f8fb8bde9f6bbdca7a809f88125206bb135e3d8 psa: Fixed article view jumping back to a previously opened article --- diff --git a/psa_harmattan/feedingit/qml/ArticleViewer.qml b/psa_harmattan/feedingit/qml/ArticleViewer.qml index 7e58501..c8e59e0 100644 --- a/psa_harmattan/feedingit/qml/ArticleViewer.qml +++ b/psa_harmattan/feedingit/qml/ArticleViewer.qml @@ -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; } } }