@urso/core 0.7.95-dev → 0.7.96-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -325,7 +325,7 @@ class PropertyAdapter {
|
|
|
325
325
|
case 'right':
|
|
326
326
|
return object.parent ? this._getWidthAsNumber(object.parent) - this._getWidthAsNumber(object) : 0; //parentWidth-objectWidth
|
|
327
327
|
case 'center':
|
|
328
|
-
const parentWidth = object.parent ? this._getWidthAsNumber(object.parent) : 0;
|
|
328
|
+
const parentWidth = object.parent ? this._getWidthAsNumber(object.parent) - this._getWidthAsNumber(object) : 0;
|
|
329
329
|
return parentWidth / 2;
|
|
330
330
|
default:
|
|
331
331
|
Urso.logger.error('AlignX string is not valid!');
|
|
@@ -347,9 +347,9 @@ class PropertyAdapter {
|
|
|
347
347
|
case 'top':
|
|
348
348
|
return 0;
|
|
349
349
|
case 'bottom':
|
|
350
|
-
return object.parent ? this._getHeightAsNumber(object.parent) : 0; //parentHeight
|
|
350
|
+
return object.parent ? this._getHeightAsNumber(object.parent) - this._getHeightAsNumber(object) : 0; //parentHeight
|
|
351
351
|
case 'center':
|
|
352
|
-
const parentHeight = object.parent ? this._getHeightAsNumber(object.parent) : 0;
|
|
352
|
+
const parentHeight = object.parent ? this._getHeightAsNumber(object.parent) - this._getHeightAsNumber(object) : 0;
|
|
353
353
|
return parentHeight / 2;
|
|
354
354
|
default:
|
|
355
355
|
Urso.logger.error('AlignY string is not valid!');
|