Skip to content

fix(listview-ios): incorrect layout when scroll #6656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2018

Conversation

MartoYankov
Copy link
Contributor

@MartoYankov MartoYankov commented Dec 4, 2018

Fixes NativeScript/nativescript-angular#1626
Fixes #6628
Fixes #6573

During the first layout of the list view items, they have no window. On scroll when laying out the next items, they suddenly have a window. Maybe because of recycling. This is not the actual issue however. The problem is that for some reason the coordinates of these views in this window are negative, i.e. wrong. Not sure what is causing that.

The easiest and cleanest way to fix this would be to make the iosOverflowSafeArea property inherited and assign it as false to the list view cell. However, we can't do this by design - containers and components must have different default values. So the next best thing is add a new property which can be inherited - iosOverflowSafeAreaEnabled. Setting this to false would disable the setting of the other property to the View and all its children.

@ghost ghost assigned dtopuzov Dec 4, 2018
@MartoYankov MartoYankov added docs needed Additional documentation on this issue/PR is needed e2e test needed labels Dec 5, 2018
@MartoYankov MartoYankov force-pushed the myankov/listview-safearea branch from 0bdf34a to 0d7a3f2 Compare December 5, 2018 09:08
@MartoYankov MartoYankov merged commit 63be78a into master Dec 5, 2018
@ghost ghost removed the in progress label Dec 5, 2018
@MartoYankov MartoYankov deleted the myankov/listview-safearea branch December 5, 2018 14:33
@marcocasadio

This comment has been minimized.

@NickIliev
Copy link
Contributor

@marcocasadio a PR is not the place to report an issue - please post your issue in the respective repository (in your case with RadListView that would be https://github.com/telerik/nativescript-ui-feedback/issues)

@lock
Copy link

lock bot commented Mar 10, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes docs needed Additional documentation on this issue/PR is needed
Projects
Status: 🆕 New
7 participants