mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Compact view: Fix of left margin for first group
This commit is contained in:
parent
613758b5ec
commit
a5becac42c
|
@ -392,15 +392,15 @@ void KItemListViewLayouter::doLayout()
|
|||
// The item is the first item of a group.
|
||||
// Increase the y-position to provide space
|
||||
// for the group header.
|
||||
if (index == 0) {
|
||||
// The first group header should be aligned on top
|
||||
y -= itemMargin.height();
|
||||
} else {
|
||||
if (index > 0) {
|
||||
// Only add a margin if there has been added another
|
||||
// group already before
|
||||
y += m_groupHeaderMargin;
|
||||
} else if (!horizontalScrolling) {
|
||||
// The first group header should be aligned on top
|
||||
y -= itemMargin.height();
|
||||
}
|
||||
|
||||
|
||||
if (!horizontalScrolling) {
|
||||
y += m_groupHeaderHeight;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue