fix(scroll-view): apply insets to layoutChild method

Delete `*-nav-page.*` files reproducing the issue.
Update `home-page.xml` with `ScrollView` to reproduce the issue.
This commit is contained in:
Vasil Chimev
2018-07-30 18:46:49 +03:00
committed by Martin Yankov
parent 0348614b22
commit a3a86f1f42
5 changed files with 11 additions and 41 deletions

View File

@@ -186,7 +186,7 @@ export class ScrollView extends ScrollViewBase {
}
nativeView.contentSize = CGSizeMake(layout.toDeviceIndependentPixels(width), layout.toDeviceIndependentPixels(height));
View.layoutChild(this, this.layoutView, 0, 0, width, height);
View.layoutChild(this, this.layoutView, insets.left, insets.top, width, height);
// if (this.orientation === "horizontal") {
// nativeView.contentSize = CGSizeMake(layout.toDeviceIndependentPixels(this._contentMeasuredWidth + insets.left + insets.right), layout.toDeviceIndependentPixels(height));