summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCătălin Badea <catalin.badea392@gmail.com>2012-08-12 07:07:24 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-12 07:07:24 (GMT)
commit6dc43419273f09b9d786d8bae97206960ff85dbf (patch)
treef032020067cf85ee198d349415e3e37b3d026711
parentee93f90f636e2f646880489f2aeea2f61c508268 (diff)
downloadswift-contrib-6dc43419273f09b9d786d8bae97206960ff85dbf.zip
swift-contrib-6dc43419273f09b9d786d8bae97206960ff85dbf.tar.bz2
Adjust autoscrolling.
-rw-r--r--Swift/QtUI/QtChatView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatView.cpp b/Swift/QtUI/QtChatView.cpp
index 31172ac..37e34e9 100644
--- a/Swift/QtUI/QtChatView.cpp
+++ b/Swift/QtUI/QtChatView.cpp
@@ -274,7 +274,7 @@ void QtChatView::displayReceiptInfo(const QString& id, bool showIt) {
}
void QtChatView::rememberScrolledToBottom() {
- isAtBottom_ = webPage_->mainFrame()->scrollBarValue(Qt::Vertical) == webPage_->mainFrame()->scrollBarMaximum(Qt::Vertical);
+ isAtBottom_ = webPage_->mainFrame()->scrollBarValue(Qt::Vertical) >= (webPage_->mainFrame()->scrollBarMaximum(Qt::Vertical) - 1);
}
void QtChatView::scrollToBottom() {