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
Absolute positioned view inherits the padding from parent #4240
Comments
Hi @meznaric! I'm not really sure what the issue is -- no padding is being inherited in the example that you provided. Perhaps you mean the spacing on |
Hey @brentvatne! I forked your example and reintroduced What I expect:
What I get:
Hopefully I described a problem better this time. |
Hey @meznaric! Thanks for that, it definitely helped! I'll create an issue on https://github.com/facebook/css-layout and reference this! 😄 |
Workaround for this can be: Instead of:
Use:
|
I've built this RNPlay.org to demonstrate the issue.
When
View
is absolutely positioned inside aView
that has a padding, padding gets inherited by absolutely positioned div. I did not expect this behaviour at all. Is this normal?The text was updated successfully, but these errors were encountered: