Explorar el Código

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

yx hace 4 años
padre
commit
57763a869e
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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()