aWeirdo 7 anni fa
parent
commit
cdda8fc149
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      gui/src/controls/image.ts

+ 8 - 0
gui/src/controls/image.ts

@@ -159,6 +159,10 @@ module BABYLON.GUI {
             return this._cellWidth;
         }
         set cellWidth(value: number) {
+            if(this._cellWidth === value){
+                return;
+            )
+            
             this._cellWidth = value;
         }
 
@@ -166,6 +170,10 @@ module BABYLON.GUI {
             return this._cellHeight;
         }
         set cellHeight(value: number) {
+            if(this._cellHeight === value){
+                return;
+            )
+            
             this._cellHeight = value;
         }