From: Manuel Nickschas Date: Thu, 28 Aug 2008 14:07:51 +0000 (+0200) Subject: Dirty hack to fix the scrolling issues for now, will investigate the actual reason... X-Git-Tag: 0.3.0.1~12 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=bf237228540f46f34291183a78028e1dda4d0dad;hp=be41e44e71e8d88a040354b28fccd824c51b353a;p=quassel.git Dirty hack to fix the scrolling issues for now, will investigate the actual reason later --- diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 02d61b26..96e8d944 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -74,6 +74,9 @@ void ChatView::sceneHeightChangedAt(qreal ypos, qreal hdiff) { void ChatView::verticalScrollbarChanged(int newPos) { QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar); + + // FIXME dirty hack to battle the "I just scroll up a pixel on hide()/show()" problem + if(vbar->maximum() - vbar->value() < 5) vbar->setValue(vbar->maximum()); if(newPos < _lastScrollbarPos) { int relativePos = 100;