From 9209ca8216a47f0c6851aa91bd00229560e9d2ec Mon Sep 17 00:00:00 2001 From: Pico Date: Sat, 8 Nov 2025 21:25:59 +0300 Subject: [PATCH] fix item list size calculation to fit all items in list --- .../quickshell/ii/modules/common/widgets/StyledComboBox.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml b/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml index ae90c8432..97424647e 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml @@ -116,7 +116,7 @@ ComboBox { popup: Popup { y: root.height + 4 width: root.width - implicitHeight: Math.min(contentItem.implicitHeight, 300) + height: Math.min(listView.contentHeight + topPadding + bottomPadding, 300) padding: 8 background: Rectangle { @@ -125,6 +125,7 @@ ComboBox { } contentItem: ListView { + id: listView clip: true implicitHeight: contentHeight model: root.popup.visible ? root.delegateModel : null