mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
vertical-alignment middle support added
This commit is contained in:
@@ -717,7 +717,7 @@ export class View extends proxy.ProxyObject implements definition.View {
|
||||
childTop = top + child.marginTop * density;
|
||||
break;
|
||||
|
||||
case enums.VerticalAlignment.center:
|
||||
case enums.VerticalAlignment.center || enums.VerticalAlignment.middle:
|
||||
childTop = top + (bottom - top - childHeight + (child.marginTop - child.marginBottom) * density) / 2;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user