mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NComboBox: layout enhancements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user