Parcourir la source

fixbug: 修复 删除设备 信息点时,留有白色背景问题

yx il y a 4 ans
Parent
commit
57763a869e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/lib/items/SEquipmentItem.ts

+ 3 - 0
src/lib/items/SEquipmentItem.ts

@@ -292,6 +292,9 @@ export class SEquipmentItem extends SObjectItem {
         this.epData.InfoList.pop()
         if (this.textArr.length) {
             this.textArr[this.textArr.length - 1].text = '';
+            this.textArr[this.textArr.length - 1].width = 0;
+            this.textArr[this.textArr.length - 1].height = 0;
+            this.textArr[this.textArr.length - 1].backgroundColor = SColor.Transparent;
             this.textArr.pop()
         }
         this.update()