Keep scrolled down views through resizeEvents
authorSebastian Goth <seezer@roath.org>
Tue, 17 Jun 2014 17:26:50 +0000 (19:26 +0200)
committerDaniel Albers <daniel@lbe.rs>
Mon, 28 Jul 2014 13:55:31 +0000 (15:55 +0200)
commite105229e4443fbb05496fcec02a83cb8ffba09db
tree758331c42c0ad9448b2b17c997f0cfe60694e64e
parent777799ecd614503b20c0fc9d31223556ecc6078b
Keep scrolled down views through resizeEvents

There's a reason for everything...
ChatView is rendered into the viewport from top to bottom.
If we don't scroll to bottom, the topmost line doesn't change and therefore
the scrollbar will move upwards on shrinking events.
So if the scrollbar was at bottom before the resize, make it stay there.
src/qtui/chatview.cpp