fix text alignment error when font change

This commit is contained in:
王劲鹏 2021-04-16 19:24:07 +08:00 committed by osborn
parent 7b6a4c4d51
commit 9d87f32cbb

View File

@ -49,11 +49,19 @@ TextArea {
onWidthChanged: {
bg.implicitWidth = width
console.log(tag, uuid + " onWidthChanged: " + this.width)
let tempText = this.text
this.text = ""
this.text = tempText
}
onHeightChanged: {
bg.implicitHeight = height
console.log(tag, uuid + " onHeightChanged: " + this.height)
let tempText = this.text
this.text = ""
this.text = tempText
}
MouseArea {