text default center

This commit is contained in:
王劲鹏 2021-04-16 18:40:52 +08:00 committed by osborn
parent 7950416ba6
commit fb68b66128

View File

@ -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