mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:59:02 +08:00
Merge branch 'CURA-9039_combobox_open_out_of_window' of github.com:Ultimaker/Cura
This commit is contained in:
commit
1ef797a744
@ -193,6 +193,14 @@ Item
|
|||||||
cacheBuffer: 1000000 // Set a large cache to effectively just cache every list item.
|
cacheBuffer: 1000000 // Set a large cache to effectively just cache every list item.
|
||||||
ScrollBar.vertical: UM.ScrollBar { id: scrollBar }
|
ScrollBar.vertical: UM.ScrollBar { id: scrollBar }
|
||||||
|
|
||||||
|
onContentYChanged: {
|
||||||
|
// This removes focus from SettingItems when scrolling.
|
||||||
|
// This fixes comboboxes staying open and scrolling out of the settingView.
|
||||||
|
if (!scrollBar.activeFocus) {
|
||||||
|
scrollBar.forceActiveFocus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
model: UM.SettingDefinitionsModel
|
model: UM.SettingDefinitionsModel
|
||||||
{
|
{
|
||||||
id: definitionsModel
|
id: definitionsModel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user