add text color & text size

This commit is contained in:
王劲鹏
2021-03-16 16:01:38 +08:00
committed by osborn
parent ca1129d31e
commit c51b99a351
2 changed files with 10 additions and 2 deletions

View File

@@ -23,10 +23,10 @@ Rectangle {
this.childrenRectWidth = childrenRect.width
this.childrenRectHeight = childrenRect.height
if (this.width === 0) {
if (this.width < this.childrenRectWidth) {
this.width = this.childrenRectWidth
}
if (this.height === 0) {
if (this.height < this.childrenRectHeight) {
this.height = this.childrenRectHeight
}
}