[kcmkwin/kwindecoration] Elide "theme default border size" CheckBox

Otherwise the layout explodes.
Unfortunately it seems Layouts don't shrink the items within even if there's not enough room at all, so I need this fillWidth + maximumWidth workaround.

Differential Revision: https://phabricator.kde.org/D24885
This commit is contained in:
Kai Uwe Broulik 2019-10-23 13:48:21 +02:00
parent 71c3f063bb
commit 2ce1d99221

View file

@ -84,6 +84,9 @@ Kirigami.Page {
RowLayout {
Controls.CheckBox {
id: borderSizeAutoCheckbox
// Let it elide but don't make it push the ComboBox away from it
Layout.fillWidth: true
Layout.maximumWidth: implicitWidth
text: i18nc("checkbox label", "Use theme's default window border size")
checked: kcm.borderSizeAuto
onCheckedChanged: {