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

contentInset.top does not work correctly #10

Closed
jaulz opened this issue Jun 14, 2015 · 6 comments
Closed

contentInset.top does not work correctly #10

jaulz opened this issue Jun 14, 2015 · 6 comments

Comments

@jaulz
Copy link

jaulz commented Jun 14, 2015

In order to make my header smaller I found the contentInset.top property. Though it works when first rendered after scrolling it does not work correctly anymore and you see a gap between the header and the content.

@lelandrichardson
Copy link
Owner

@jaulz Please try updating to the new version and let me know if this is still a problem. Thanks.

@askday
Copy link

askday commented Jan 22, 2016

I meet this problem,too
when first open view ,that's renderd correctly
but I scroll it ,the header scroll to the top
you can see it through statesbar

t1
t2

@ericraio
Copy link

+1 having the same issue too as well

@ericraio
Copy link

@lelandrichardson there is no fix in the latest version for this. :/

@williambout
Copy link
Contributor

+1 I have the same issue.

@askday
Copy link

askday commented Apr 5, 2016

I solve this problem by change contentInset.top when view getDefaultProps.

getDefaultProps: function () { return { windowHeight: 300, contentInset: { top: 5 * screen.scale } }; },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants