vertical centering only if there is more than one line
This commit is contained in:
parent
0c2995f8e8
commit
e4c44a117e
@ -24,7 +24,7 @@ Text {
|
||||
id: root
|
||||
|
||||
height: theme.defaultFont.mSize.height*1.8
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
|
||||
|
||||
font.capitalization: theme.defaultFont.capitalization
|
||||
font.family: theme.defaultFont.family
|
||||
|
Loading…
Reference in New Issue
Block a user