aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Moiseev <cyberbobs@gmail.com>2017-08-23 14:21:05 +0300
committerBoris Moiseev <cyberbobs@gmail.com>2017-08-29 10:35:13 +0000
commitbfb41bc10d25a2ef5b92b56eb9cb0e2cfdf43c77 (patch)
tree0894340b1cb87201dce630fca4779fbc9008ffd9 /src
parent31d90e308e46d644d74e9434ce31dd664677bc59 (diff)
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 <jpnurmi@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/imports/controls/material/TextField.qml2
1 files changed, 1 insertions, 1 deletions
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