mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Let the group-headers respect the item-offset
This commit is contained in:
parent
321f747ddf
commit
9641672247
|
@ -1905,8 +1905,10 @@ void KItemListView::updateGroupHeaderLayout(KItemListWidget* widget)
|
|||
// In the vertical scroll orientation the group header should always span
|
||||
// the whole width no matter which temporary position the parent widget
|
||||
// has. In this case the x-position and width will be adjusted manually.
|
||||
groupHeader->setPos(-widget->x(), -groupHeaderRect.height());
|
||||
groupHeader->resize(size().width(), groupHeaderRect.size().height());
|
||||
const qreal x = -widget->x() - itemOffset();
|
||||
const qreal width = maximumItemOffset();
|
||||
groupHeader->setPos(x, -groupHeaderRect.height());
|
||||
groupHeader->resize(width, groupHeaderRect.size().height());
|
||||
} else {
|
||||
groupHeader->setPos(groupHeaderRect.x() - itemRect.x(), -widget->y());
|
||||
groupHeader->resize(groupHeaderRect.size());
|
||||
|
|
Loading…
Reference in a new issue