-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
v 0.18 flex 1.0 doesn't work if the height of parent is indirectly determined by parent's siblings #5141
Comments
Hey janneo, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
+1 |
React Native flexbox isn't supposed to work precisely the same as flexbox in the browser. It's operated by css-layout so it's slightly different. We've improved the docs a lot since January, so I think this is more clear now. I'm going to close this issue but if you think there's still an area where the RN behavior doesn't match the docs, then I think it would be great to open a new issue. A reproduction of the problem on rnplay.org is the best way to be helpful for that - that's somewhat more useful than comparison code to run in a browser. Thanks for pointing this issue out. |
1. issue
The html dom tree is:
The key properties are:
uncle
has a fixed height100px
, so that the height ofgrandparent
is the same asuncle
, andparent
should also be 100px high.The height of
me
is expected to be100px
, however it's not.We used only
React/Layout.c
to layout v 0.18.React/Layout.c
Works well in chrome
2. source
The text was updated successfully, but these errors were encountered: