From 105976a42a25e25410e9e1373cd2f6da4c5d8655 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Sun, 27 Oct 2019 12:51:39 -0600 Subject: [PATCH] [kcmkwin/desktop] Elide "Show animation when switching" checkbox text Summary: Otherwise the combobox containing the switching effects escapes from the page. Same fix as D24885. BUG: 403151 FIXED-IN: 5.17.2 Test Plan: Checkbox text now elides when the window is made very narrow, and combobox no longer gets cut off. Reviewers: #kwin, zzag, davidedmundson Reviewed By: #kwin, zzag, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24988 --- kcmkwin/kwindesktop/package/contents/ui/main.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kcmkwin/kwindesktop/package/contents/ui/main.qml b/kcmkwin/kwindesktop/package/contents/ui/main.qml index 40aaa8a935..dea0bd69f1 100644 --- a/kcmkwin/kwindesktop/package/contents/ui/main.qml +++ b/kcmkwin/kwindesktop/package/contents/ui/main.qml @@ -192,6 +192,9 @@ ScrollViewKCM { QQC2.CheckBox { id: animationEnabled + // Let it elide but don't make it push the ComboBox away from it + Layout.fillWidth: true + Layout.maximumWidth: implicitWidth text: i18n("Show animation when switching:")