mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Remove focus from SettingItems when scrolling.
This fixes the issue where you can scroll combobox dropdowns out of the settingView. CURA-9039
This commit is contained in:
parent
c6326eff64
commit
b04fabb27a
1 changed files with 8 additions and 0 deletions
|
@ -193,6 +193,14 @@ Item
|
|||
cacheBuffer: 1000000 // Set a large cache to effectively just cache every list item.
|
||||
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
|
||||
{
|
||||
id: definitionsModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue