Skip to content
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

[iOS] 0.11.4 - ListView sections do not scroll to the absolute top of its container #3230

Closed
jaygarcia opened this issue Oct 4, 2015 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jaygarcia
Copy link
Contributor

I created a basic scaffold, copied "ListViewPagingExample.js" from master, pasted it into my 0.11.4 codebase as the only view, and noticed something very strange. The sections don't scroll as expected to the top of the view.

See below.

listview

Inside of an application without a header:
listview

@jaygarcia
Copy link
Contributor Author

What is very confusing is that this works perfectly within the confines of a Navigator component. ListView is just one of those components that is so very mysterious sometimes :P

listview

@ide
Copy link
Contributor

ide commented Oct 4, 2015

Turn off automatic adjustment of the content insets.

@jaygarcia
Copy link
Contributor Author

@ide, thank you! I found similar issues after some more searches.

This is clearly a documentation issue. I've tripped over this a few times already.

automaticallyAdjustContentInsets is not a direct property of ListView. Without knowledge of the source, that is that ListView implements a ScrollView, how does a new person actually resolve this issue?

It seems that the ScrollView prop types (https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/ListView/ListView.js#L114) are included, but the documentation doesn't mention this at all.

I'd love to make a PR for this but to date, i've made several, all of which have been stalled or just ignored.

Thoughts?

@satya164
Copy link
Contributor

satya164 commented Oct 5, 2015

@jaygarcia They have lots of pull requests. We should be patient.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants