fix item list size calculation to fit all items in list

This commit is contained in:
Pico
2025-11-08 21:25:59 +03:00
parent 424510065d
commit 9209ca8216
@@ -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