text default center
This commit is contained in:
parent
7950416ba6
commit
fb68b66128
@ -31,6 +31,9 @@ TextArea {
|
|||||||
bg.color = backgroundColor
|
bg.color = backgroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
|
|
||||||
onTextAlignmentChanged: {
|
onTextAlignmentChanged: {
|
||||||
let gravity = Gravity.enumerate()
|
let gravity = Gravity.enumerate()
|
||||||
let result = this.textAlignment | gravity.CENTER_Y
|
let result = this.textAlignment | gravity.CENTER_Y
|
||||||
|
Reference in New Issue
Block a user