mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix item list size calculation to fit all items in list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user