From 5a94027ffed6c97b839a6104e2d572a876a995d8 Mon Sep 17 00:00:00 2001 From: Alexander von Renteln Date: Sun, 26 Oct 2008 00:25:52 +0200 Subject: [PATCH] fix: stay at the end of the bufferwidget when zoomed in --- src/qtui/chatview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } } -- 2.20.1