1
0
Fork 0

GUI: more realistic scroll bars

This commit is contained in:
mrexodia 2016-11-18 17:19:41 +01:00
parent 78e10e1513
commit f797a0e095
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 2 additions and 0 deletions

View File

@ -857,6 +857,8 @@ void AbstractTableView::updateScrollBarRange(dsint range)
}
else
verticalScrollBar()->setRange(0, 0);
verticalScrollBar()->setSingleStep(getRowHeight());
verticalScrollBar()->setPageStep(getViewableRowsCount() * getRowHeight());
}
/************************************************************************************