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
@@ -96,7 +96,7 @@ void ScrollBar::scrollToBottom()
bool ScrollBar::isAtBottom() const
{
return this->getCurrentValue() == this->getMaximum() - this->getLargeChange();
return ((this->getMaximum() - this->getLargeChange()) - this->getCurrentValue()) <= 1;
}
void ScrollBar::setMaximum(qreal value)