[frameworks-kirigami] [Bug 454999] FormLayout adds an extra margin when used in KCMs

2022-06-08 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454999

Nate Graham  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 CC||n...@kde.org
 Ever confirmed|0   |1

--- Comment #2 from Nate Graham  ---
At least when it's the first item, yeah.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kirigami] [Bug 454999] FormLayout adds an extra margin when used in KCMs

2022-06-08 Thread Méven Car
https://bugs.kde.org/show_bug.cgi?id=454999

Méven Car  changed:

   What|Removed |Added

 CC||meven@kdemail.net

--- Comment #1 from Méven Car  ---
It seems due to the `Kirigami.FormData.isSection` that by default will add some
margin/space between sections, but here they are no previous items.

from kirigami FormLayout.qml
```
//if section, label goes after the separator
if (item.Kirigami.FormData.isSection) {
//put an extra spacer
var placeHolder = placeHolderComponent.createObject(lay,
{item: item});
itemContainer.parent = lay;
}
```
We probably need a way to disable this added placeHolder.

-- 
You are receiving this mail because:
You are watching all bug changes.