Summary: | FormLayout adds an extra margin when used in KCMs | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | Thiago Sueto <herzenschein> |
Component: | general | Assignee: | Marco Martin <notmart> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | meven.car, nate |
Priority: | NOR | ||
Version: | Master | ||
Target Milestone: | Not decided | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thiago Sueto
2022-06-07 20:43:11 UTC
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. At least when it's the first item, yeah. |