leave space for the clear button
This commit is contained in:
parent
d66e62116b
commit
712de91021
@ -49,7 +49,8 @@ QtQuickControlStyle.TextFieldStyle {
|
||||
Component.onCompleted: {
|
||||
root.padding.left = base.margins.left
|
||||
root.padding.top = base.margins.top
|
||||
root.padding.right = base.margins.right
|
||||
//TODO: if QtControls gets a component for this, use it instead of this hardcoded heuristic
|
||||
root.padding.right = base.margins.right + (control.clearButtonShown ? Math.max(control.parent.height*0.8, units.iconSizes.small)+units.smallSpacing : 0)
|
||||
root.padding.bottom = base.margins.bottom
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user