From: Alexander von Renteln Date: Sat, 25 Oct 2008 22:25:52 +0000 (+0200) Subject: fix: stay at the end of the bufferwidget when zoomed in X-Git-Tag: 0.3.1~127 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5a94027ffed6c97b839a6104e2d572a876a995d8;hp=dcdc88676f6bf6c961c554e1ff0d160082ba0973 fix: stay at the end of the bufferwidget when zoomed in --- diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 6e55bba6..ed71dd07 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -84,7 +84,7 @@ void ChatView::lastLineChanged(QGraphicsItem *chatLine, qreal offset) { Q_UNUSED(chatLine) QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar); - if(vbar->maximum() - vbar->value() <= offset + 5) { // 5px grace area + if(vbar->maximum() - vbar->value() <= (offset + 5) * _currentScaleFactor ) { // 5px grace area vbar->setValue(vbar->maximum()); } }