feat(dropdown): have selected item at dropdown beginning on launch (#1968)

* fix(appdrawer): launcher launched via appdrawer doesnt respect size
setting

* feat(dropdown): have selected item at dropdown beginning on launch
This commit is contained in:
Triệu Kha authored and GitHub committed 2026-03-11 13:46:44 -04:00
1 parent bddc2f6295
commit 772094eacd
1 file changed
+5
+5
View File
@@ -121,7 +121,12 @@ Item {
dropdownMenu.close();
return;
}
dropdownMenu.open();
let currentIndex = root.options.indexOf(root.currentValue);
listView.positionViewAtIndex(currentIndex, ListView.Beginning);
const pos = dropdown.mapToItem(Overlay.overlay, 0, 0);
const popupW = dropdownMenu.width;
const popupH = dropdownMenu.height;