Przeglądaj źródła

correct default alignment

Cubees 7 lat temu
rodzic
commit
6d330c918b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Playground/js/pbt.js

+ 1 - 1
Playground/js/pbt.js

@@ -78,7 +78,7 @@ var PBT = function() {
         var top = options.top||0;
         var left = options.left||0;
         var verticalAlignment = options.verticalAlignment||BABYLON.GUI.Control.VERTICAL_ALIGNMENT_TOP;
-        var horizontalAlignment = options.horizontalAlignment||BABYLON.GUI.Control.HORIZONTAL_LEFT;
+        var horizontalAlignment = options.horizontalAlignment||BABYLON.GUI.Control.HORIZONTAL_ALIGNMENT_LEFT;
         var text = options.text||"Playground Based Tutorial";   
         if(options.useImage === undefined) {
             var useImage = true;