FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(listview-ios): incorrect layout when scroll by MartoYankov · Pull Request #6656 · NativeScript/NativeScript · GitHub

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

Merged
MartoYankov merged 2 commits into
masterfrom
myankov/listview-safearea
Dec 5, 2018
Merged

MartoYankov merged 2 commits into
masterfrom
myankov/listview-safearea

Conversation

MartoYankov commented Dec 4, 2018 •
edited
Loading

Copy link
Copy Markdown
Contributor

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

This comment has been minimized.

Copy link
Copy Markdown
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 Bot commented Mar 10, 2020

Copy link
Copy Markdown

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 Bot locked and limited conversation to collaborators Mar 10, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

7 participants


Back | FazBrowse Home | New Git URL