fix(layout): IOS Layout not invalidated with custom root (#5724)

* fix(layout): Buuple up layout trough viewControllers

* test: Layout invalidates correctly with different root view

* chore: tslint
This commit is contained in:
Alexander Vakrilov
2018-04-23 15:47:27 +03:00
committed by Stanimira Vlaeva
parent ade142fee7
commit f1c0b85d95
5 changed files with 41 additions and 3 deletions

View File

@@ -59,6 +59,10 @@ export class View extends ViewCommon {
if (nativeView) {
nativeView.setNeedsLayout();
}
if (this.viewController && this.viewController.view !== nativeView) {
this.viewController.view.setNeedsLayout();
}
}
public measure(widthMeasureSpec: number, heightMeasureSpec: number): void {