Scroll setting with active focus into view

This commit is contained in:
fieldOfView 2017-06-26 13:00:59 +02:00
parent b324e90ba5
commit edee53b0b1
8 changed files with 73 additions and 6 deletions

View file

@ -105,6 +105,14 @@ SettingItem
propertyProvider.setPropertyValue("value", text)
}
onActiveFocusChanged:
{
if(activeFocus)
{
base.focusReceived();
}
}
color: !enabled ? UM.Theme.getColor("setting_control_disabled_text") : UM.Theme.getColor("setting_control_text")
font: UM.Theme.getFont("default");