[Issue facebook/css-layout#127]: content re-layout of stretched items #145
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue-127"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trying to fix #127.
@alebo: Great! this also seems to solve #83
But I had to pass:
node.MaxWidth
instead of justmaxWidth
@alebo: there is still an issue with this one. If you have
MarginTop
set. The result looks like that the value gets doubled somehow.@woehrl01 Thanks for your comments. I can investigate it further.
@alebo @vjeux I just looked at the tests, and in my opintion those are false negatives. If you add those children, the layout should be
HasNewLayout
, what do you think?@alebo according your update, sorry to bother you but if you have a lot of nested streching layouts, sometimes the position gets fully set to 0 (they are left aligned), and so they are off. So I think this is still not totally correct :(
I think that reseting the
mainAxis
is enough:at least in my scenarios the output is now as expected.
@woehrl01 if an item has MarginTop and MarginLeft resetting both axes might be required but it seems that only the margins (rather than the entire position) need to be reset.
Those failed tests seem to be false negatives indeed (but by pure accident they helped catch an actual problem too).
I'm going to push another update soon and I think I'll take the liberty to update the failed tests.
This also fixes #100
@alebo looks really good to me. Awesome job! 👍
@vjeux @lucasr any news on this one?
What still needs to be done to get this merged? It has tests and (to my unfamiliar-with-css-layout eye) doesn't appear too complex.
@alebo looks good to me!
Would be great to get this merged :)
I'm ready to rebase this and resolve conflicts as soon as there's any feedback from the project maintainers.
pinging @vjeux again, more people are running into this issue over at RN.
I'm sorry but won't be looking into it in a while. @lucasr do you have time to review this?
I think I need a little more context on the changes before reviewing (see questions).
And thanks for the contribution! ;-)
This ''blue line" is not center;
when I set the parent view's height and the blue line is center
I think it is bug at here. because the blue line's parent view's height is determine.
@alebo @lucasr @vjeux any chance we can get some eyes on this again? I reduced the problem to a very simple example and there's a basic gap in meeting spec in RN:
Screenshot (expected behavior in RN's Fiddle layout sandbox, but not in iPhone simulator): http://screencast.com/t/H3Da1mQhmLX3
Fiddle: http://jsfiddle.net/drdrace/w95u54z6/1/
@andresn @alebo in #171 I built on top of the changes made here to fix another issue. None of the tests added/changed here break due to my changes in #171, so I expect this will fix your issue as well. :)
@lucasr, is there a requirement that a pull request must contain a single commit? Could @jsendros and myself create a collaborative PR with his changes and mine represented by separate commits (so that everyone can get their deserved praise and respect :)?
@alebo Could you please just push the exact diff from #171 here so that I can merge? @jsendros doesn't really mind having you as the author of this change.
I've cherry-picked @jsendros's updates on top of my rebased commit. @lucasr, @jsendros, please confirm again, that you'd really like me to squash the two commits into one.
Squash away!