NComboBox: layout enhancements

This commit is contained in:
Lysec
2026-01-21 19:10:19 +01:00
parent f54d6708be
commit 4cffc60a2a
+7 -2
View File
@@ -185,11 +185,16 @@ RowLayout {
}
popup: Popup {
y: combo.height
implicitWidth: combo.width - Style.marginM
y: combo.height + Style.marginS
implicitWidth: combo.width
implicitHeight: Math.min(Math.round(root.popupHeight * Style.uiScaleRatio), listView.contentHeight + Style.marginXL)
padding: Style.marginM
onOpened: {
listView.currentIndex = combo.currentIndex;
listView.positionViewAtIndex(combo.currentIndex);
}
contentItem: ListView {
id: listView
property var comboBox: combo