diff --git a/doric-Qt/doric/resources/text.qml b/doric-Qt/doric/resources/text.qml index 24e92409..2665292d 100644 --- a/doric-Qt/doric/resources/text.qml +++ b/doric-Qt/doric/resources/text.qml @@ -31,6 +31,9 @@ TextArea { bg.color = backgroundColor } + horizontalAlignment: TextInput.AlignHCenter + verticalAlignment: TextInput.AlignVCenter + onTextAlignmentChanged: { let gravity = Gravity.enumerate() let result = this.textAlignment | gravity.CENTER_Y