From: Arun Ravindran <[email protected]>

---
 src/dialogpage.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/dialogpage.cpp b/src/dialogpage.cpp
index 5c1d83e..edb9a7d 100644
--- a/src/dialogpage.cpp
+++ b/src/dialogpage.cpp
@@ -244,7 +244,10 @@ void DialogPage::dialogUpdated()
 
 void DialogPage::scrollToBottom()
 {
-    mDialogList->scrollTo(mModel->index(mModel->rowCount() - 1, 0));
+    // No need to scroll to bottom if the list is not covering the viewport 
area.
+    if(mDialogViewport->positionIndicator()->viewportSize().height() < 
mDialogViewport->positionIndicator()->range().height()) {
+        mDialogList->scrollTo(mModel->index(mModel->rowCount() - 1, 0));
+    }
 }
 
 void DialogPage::customizedComplete(const QString &prefix)
-- 
1.7.0.4

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to