vertical-alignment middle support added

This commit is contained in:
Vladimir Enchev
2015-10-14 09:42:29 +03:00
parent d2571e124c
commit 19b03bbbb9
6 changed files with 13 additions and 4 deletions

View File

@@ -114,7 +114,7 @@ export class StackLayout extends common.StackLayout {
var childRight = right - left - paddingRight;
switch (this.verticalAlignment) {
case enums.VerticalAlignment.center:
case enums.VerticalAlignment.center || enums.VerticalAlignment.middle:
childTop = (bottom - top - this._totalLength) / 2 + paddingTop - paddingBottom;
break;