Skip to content

Fix for iOS 11 ListView top offset #4919

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 3 commits into from
Oct 20, 2017

Conversation

VladimirAmiorkov
Copy link
Contributor

This PR addresses this issue #4916. In iOS 11 there is a new contentInsetAdjustmentBehavior behavior of the UIScrollView which is inherited by the ListView's UITableView. The default value of this new behavior is automatic which adjusts the top offset as described by the API description:

Content is always adjusted vertically when the scroll view is the content view of a view controller that is currently displayed by a navigation or tab bar controller. If the scroll view is horizontally scrollable, the horizontal content offset is also adjusted when there are nonzero safe area insets.

After this PR it may be a good feature to actually support the new different value of this new behavior, at the moment the animations provided by this behavior are not working inside the {N} layouts (GridLayout, StackLayout etc.)

@ghost ghost assigned VladimirAmiorkov Oct 5, 2017
@ghost ghost added the in progress label Oct 5, 2017
@ns-bot
Copy link

ns-bot commented Oct 5, 2017

Please sign CLA at http://www.nativescript.org/cla

@ns-bot ns-bot added the cla: no label Oct 5, 2017
@vchimev vchimev added cla: yes and removed cla: no labels Oct 5, 2017
@hshristov
Copy link
Contributor

My PR will resolve ios 11 layout issues and will make this property working out-of-the box. So I think we
shouldn't merge this one.

@VladimirAmiorkov
Copy link
Contributor Author

As noted in my PR comment, if we can take advantage of the new behavior without the current issues that would be great. Feel free to skip this PR if you have made the new behavior work out of the box.

@hshristov hshristov merged commit 2eba7c6 into master Oct 20, 2017
@ghost ghost removed the in progress label Oct 20, 2017
@hshristov hshristov deleted the amiorkov/listview-ios11-offset-fix branch October 20, 2017 05:38
@lock
Copy link

lock bot commented Aug 26, 2019

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 Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy