fix text alignment error when font change
This commit is contained in:
parent
7b6a4c4d51
commit
9d87f32cbb
@ -49,11 +49,19 @@ TextArea {
|
|||||||
onWidthChanged: {
|
onWidthChanged: {
|
||||||
bg.implicitWidth = width
|
bg.implicitWidth = width
|
||||||
console.log(tag, uuid + " onWidthChanged: " + this.width)
|
console.log(tag, uuid + " onWidthChanged: " + this.width)
|
||||||
|
|
||||||
|
let tempText = this.text
|
||||||
|
this.text = ""
|
||||||
|
this.text = tempText
|
||||||
}
|
}
|
||||||
|
|
||||||
onHeightChanged: {
|
onHeightChanged: {
|
||||||
bg.implicitHeight = height
|
bg.implicitHeight = height
|
||||||
console.log(tag, uuid + " onHeightChanged: " + this.height)
|
console.log(tag, uuid + " onHeightChanged: " + this.height)
|
||||||
|
|
||||||
|
let tempText = this.text
|
||||||
|
this.text = ""
|
||||||
|
this.text = tempText
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
Reference in New Issue
Block a user