|
@@ -7423,7 +7423,7 @@ var BABYLON;
|
|
|
// return;
|
|
|
//}
|
|
|
if (this._checkUseMargin()) {
|
|
|
- switch (this._marginAlignment.horizontal) {
|
|
|
+ switch (this.marginAlignment.horizontal) {
|
|
|
case PrimitiveAlignment.AlignLeft:
|
|
|
case PrimitiveAlignment.AlignStretch:
|
|
|
case PrimitiveAlignment.AlignCenter:
|
|
@@ -7433,7 +7433,7 @@ var BABYLON;
|
|
|
this.margin.rightPixels = value.x;
|
|
|
break;
|
|
|
}
|
|
|
- switch (this._marginAlignment.vertical) {
|
|
|
+ switch (this.marginAlignment.vertical) {
|
|
|
case PrimitiveAlignment.AlignBottom:
|
|
|
case PrimitiveAlignment.AlignStretch:
|
|
|
case PrimitiveAlignment.AlignCenter:
|
|
@@ -7483,7 +7483,7 @@ var BABYLON;
|
|
|
throw new Error("Can't set a null x in primitive " + this.id + ", only the position can be turned to null");
|
|
|
}
|
|
|
if (this._checkUseMargin()) {
|
|
|
- switch (this._marginAlignment.horizontal) {
|
|
|
+ switch (this.marginAlignment.horizontal) {
|
|
|
case PrimitiveAlignment.AlignLeft:
|
|
|
case PrimitiveAlignment.AlignStretch:
|
|
|
case PrimitiveAlignment.AlignCenter:
|
|
@@ -7530,7 +7530,7 @@ var BABYLON;
|
|
|
throw new Error("Can't set a null y in primitive " + this.id + ", only the position can be turned to null");
|
|
|
}
|
|
|
if (this._checkUseMargin()) {
|
|
|
- switch (this._marginAlignment.vertical) {
|
|
|
+ switch (this.marginAlignment.vertical) {
|
|
|
case PrimitiveAlignment.AlignBottom:
|
|
|
case PrimitiveAlignment.AlignStretch:
|
|
|
case PrimitiveAlignment.AlignCenter:
|