Force left to right reading direction for numeric textfield

CURA-10583
This commit is contained in:
Jaime van Kessel 2023-07-25 13:20:26 +02:00
parent 56b8205ce0
commit 86cb3851fe
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -76,6 +76,11 @@ UM.TooltipArea
anchors.left: fieldLabel.right anchors.left: fieldLabel.right
anchors.leftMargin: spacing anchors.leftMargin: spacing
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
// The control is set up for left to right. So we force it to that. If we don't, it will take the OS reading
// direction, which might not be left to right. This will lead to the text overlapping with the unit
horizontalAlignment: TextInput.AlignLeft
selectionColor: UM.Theme.getColor("text_selection") selectionColor: UM.Theme.getColor("text_selection")
selectedTextColor: UM.Theme.getColor("setting_control_text") selectedTextColor: UM.Theme.getColor("setting_control_text")
padding: 0 padding: 0