mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Get the biggest item size for recalculating scrollbar size.
This patch was made by ereslibre, I'm commiting it because he is kind of offline. svn path=/trunk/KDE/kdebase/apps/; revision=753426
This commit is contained in:
parent
3cd333e663
commit
4391635b5d
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ void KCategorizedView::Private::updateScrollbars()
|
||||||
QModelIndex lastIndex = categoriesIndexes.isEmpty() ? QModelIndex() : categoriesIndexes[categories.last()].last();
|
QModelIndex lastIndex = categoriesIndexes.isEmpty() ? QModelIndex() : categoriesIndexes[categories.last()].last();
|
||||||
|
|
||||||
int lastItemBottom = cachedRectIndex(lastIndex).top() +
|
int lastItemBottom = cachedRectIndex(lastIndex).top() +
|
||||||
listView->spacing() + (listView->gridSize().isEmpty() ? cachedRectIndex(lastIndex).height() : listView->gridSize().height()) - listView->viewport()->height();
|
listView->spacing() + (listView->gridSize().isEmpty() ? biggestItemSize.height() : listView->gridSize().height()) - listView->viewport()->height();
|
||||||
|
|
||||||
listView->horizontalScrollBar()->setRange(0, 0);
|
listView->horizontalScrollBar()->setRange(0, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue