Don't scroll to bottom on resize
authorSebastian Goth <seezer@roath.org>
Tue, 17 Jun 2014 16:07:11 +0000 (18:07 +0200)
committerDaniel Albers <daniel@lbe.rs>
Mon, 28 Jul 2014 13:55:31 +0000 (15:55 +0200)
We're brave today..
Resizing the chatview (even unintentionally by hovering the topicline)
resulted in scrolling down the current view.
There might have been reasons.. i can't see them..

Fixes #821

src/qtui/chatview.cpp

index 53c4392..b40b290 100644 (file)
@@ -128,16 +128,9 @@ void ChatView::resizeEvent(QResizeEvent *event)
 {
     QGraphicsView::resizeEvent(event);
 
-    // FIXME: do we really need to scroll down on resize?
-
-    // we can reduce viewport updates if we scroll to the bottom allready at the beginning
-    verticalScrollBar()->setValue(verticalScrollBar()->maximum());
     scene()->updateForViewport(viewport()->width(), viewport()->height());
     adjustSceneRect();
 
-    _lastScrollbarPos = verticalScrollBar()->maximum();
-    verticalScrollBar()->setValue(verticalScrollBar()->maximum());
-
     checkChatLineCaches();
 }