From 2ce1d99221118ead24f5e5076fa06816144cd2ce Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 23 Oct 2019 13:48:21 +0200 Subject: [PATCH] [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 --- kcmkwin/kwindecoration/package/contents/ui/main.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kcmkwin/kwindecoration/package/contents/ui/main.qml b/kcmkwin/kwindecoration/package/contents/ui/main.qml index 5c8316df1d..38c9459e87 100644 --- a/kcmkwin/kwindecoration/package/contents/ui/main.qml +++ b/kcmkwin/kwindecoration/package/contents/ui/main.qml @@ -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: {