From bfb41bc10d25a2ef5b92b56eb9cb0e2cfdf43c77 Mon Sep 17 00:00:00 2001 From: Boris Moiseev Date: Wed, 23 Aug 2017 14:21:05 +0300 Subject: Material: position TextField background independently of bottomPadding Currently Material background bar is positioned at the center of control bottom padding. When user tries to change the bottomPadding for instance of TextField, the background bar may be aligned incorrectly with field text. Change-Id: I901e4351374aa228a59414e91f6d1ae61ae164a1 Reviewed-by: J-P Nurmi --- src/imports/controls/material/TextField.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imports/controls/material/TextField.qml b/src/imports/controls/material/TextField.qml index 9f18afef..25a05f99 100644 --- a/src/imports/controls/material/TextField.qml +++ b/src/imports/controls/material/TextField.qml @@ -77,7 +77,7 @@ T.TextField { } background: Rectangle { - y: control.height - height - control.bottomPadding / 2 + y: control.height - height - control.bottomPadding + 8 implicitWidth: 120 height: control.activeFocus ? 2 : 1 color: control.activeFocus ? control.Material.accentColor : control.Material.hintTextColor -- cgit v1.2.3