Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
None
-
Linux, Fedora, 64bit, qmlsceneviewer
-
41f44e224695789974e2c92db95810e19e6fab49 109889428edc5e4cf25c9fdd11a5e006e8a08630
Description
Adding an empty "default" style to a TextField messes up its baseline property. See the following sample code:
------------------------
import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
Rectangle {
width: 360
height: 360
Column {
Rectangle
Row {
spacing: 20
Text
TextField
{ id: text_field_good text: "good" }}
Rectangle
{ color: "yellow" height: 100 width: 100 } Row {
spacing: 20
Text
TextField {
id: text_field_bad
text: "bad"
style: TextFieldStyle {
}
}
}
}
}
Attachments
Issue Links
- relates to
-
QTBUG-36749 TextInput have wrong/uninitialized baselineOffset
- Closed