NativeScript icon indicating copy to clipboard operation
NativeScript copied to clipboard

Scroll View safe area turned on by default change

Open SeanKelly369 opened this issue 2 years ago • 2 comments

Issue Description

When creating a nested scrollview within a scrollview, with the parent scrolling horizontally and the child scrolling vertically, when a sort is called, the cells in the columns out of view are incorrectly aligned and there can be graphical glitches. This is because ios overflow safe area is enabled. When it is disabled, the problem is resolved by adding the following code to ui -> scroll-view -> index.ios.js in the if condition on line 58 in the function attachNative(), placing it after this.nativeViewProtected.delegate = this._delegate;->

            // Disable the iosOverflowSafeAreaEnabled property
            this.nativeViewProtected.iosOverflowSafeAreaEnabled = false;

Reproduction

Create a ScrollView with a child Scrollview. The parent will scroll horizontally, and the child scrolls vertically. When a sort is called, the ScrollViews rerender. The parts of the layout out of view when sorted with have layout issues if iosOverflowSafeAreaEnabled is turned on by default.

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

SeanKelly369 avatar May 13 '23 12:05 SeanKelly369

@SeanKelly369 Please consider?

imperatormk avatar Dec 25 '24 20:12 imperatormk

@imperatormk Is it still an issue today?

SeanKelly369 avatar Dec 25 '24 20:12 SeanKelly369