David Catuhe 8 vuotta sitten
vanhempi
commit
b543f2af3c

+ 1 - 1
dist/preview release/gui/babylon.gui.js

@@ -499,7 +499,7 @@ var BABYLON;
             ValueAndUnit.prototype.toString = function (host) {
                 switch (this.unit) {
                     case ValueAndUnit.UNITMODE_PERCENTAGE:
-                        return this.getValue(host) + "%";
+                        return (this.getValue(host) * 100) + "%";
                     case ValueAndUnit.UNITMODE_PIXEL:
                         return this.getValue(host) + "px";
                 }

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 1
dist/preview release/gui/babylon.gui.min.js


+ 1 - 1
gui/src/valueAndUnit.ts

@@ -38,7 +38,7 @@ module BABYLON.GUI {
         public toString(host: AdvancedDynamicTexture): string {
             switch (this.unit) {
                 case ValueAndUnit.UNITMODE_PERCENTAGE:
-                    return this.getValue(host) + "%";
+                    return (this.getValue(host) * 100) + "%";
                 case ValueAndUnit.UNITMODE_PIXEL:
                     return this.getValue(host) + "px";
             }