fix scroll to bottom issue

This commit is contained in:
Rasmus Karlsson
2017-06-06 21:18:05 +02:00
parent 768b3db27a
commit b66dc479e6
10 changed files with 34 additions and 20 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ bool ChatWidgetView::layoutMessages()
_scrollbar.setMaximum(messages.getSize());
if (showingLatestMessages && showScrollbar) {
if (this->showingLatestMessages && showScrollbar) {
// If we were showing the latest messages and the scrollbar now wants to be rendered, scroll
// to bottom
// TODO: Do we want to check if the user is currently moving the scrollbar?