mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
committed by
Martin Yankov
parent
a1d240786f
commit
52f8e67203
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user