fix(core): stack layout padding (#9183)

fixes #8810
This commit is contained in:
Ben Delaney
2021-01-31 04:45:59 +11:00
committed by Nathan Walker
parent 3bd2d96f29
commit a12c188d0f
13 changed files with 24 additions and 10 deletions

View File

Binary file not shown.

View File

@@ -34,7 +34,7 @@
</data>
<key>Info.plist</key>
<data>
ADh4pPlA/MlPeoqmSDibKmrOKb0=
Xj1cG5BPcNRo2kinT2TzpxSuwlc=
</data>
<key>Modules/module.modulemap</key>
<data>

View File

@@ -1154,7 +1154,6 @@ export const iosIgnoreSafeAreaProperty = new InheritedProperty({
valueConverter: booleanConverter,
});
iosIgnoreSafeAreaProperty.register(ViewCommon);
accessibilityIdentifierProperty.register(ViewCommon);
accessibilityLabelProperty.register(ViewCommon);
accessibilityValueProperty.register(ViewCommon);

View File

@@ -113,11 +113,11 @@ export class StackLayout extends StackLayoutBase {
switch (this.verticalAlignment) {
case VerticalAlignment.MIDDLE:
childTop = (bottom - top - this._totalLength) / 2 + paddingTop - paddingBottom;
childTop = (bottom - top - this._totalLength) / 2 + paddingTop;
break;
case VerticalAlignment.BOTTOM:
childTop = bottom - top - this._totalLength + paddingTop - paddingBottom;
childTop = bottom - top - this._totalLength + paddingTop;
break;
case VerticalAlignment.TOP:
@@ -147,11 +147,11 @@ export class StackLayout extends StackLayoutBase {
switch (this.horizontalAlignment) {
case HorizontalAlignment.CENTER:
childLeft = (right - left - this._totalLength) / 2 + paddingLeft - paddingRight;
childLeft = (right - left - this._totalLength) / 2 + paddingLeft;
break;
case HorizontalAlignment.RIGHT:
childLeft = right - left - this._totalLength + paddingLeft - paddingRight;
childLeft = right - left - this._totalLength + paddingLeft;
break;
case HorizontalAlignment.LEFT: