Flexbugs: justify-content: flex-end and overflow: auto don't play along

Created on 1 Jun 2015  路  10Comments  路  Source: philipwalton/flexbugs

Most helpful comment

I found a workaround for this. Use justify-content: flex-start (or whatever, really) and add a **selector** > :first-child { margin-top: auto } so it pushes the rest of the items to the bottom of the flex container.

All 10 comments

Did you have a workaround in mind for this?

Nope. :(

No worries, I think it's good to have these sorts of bugs documented here in case others have the same issue, but I'm going to reserve the "official" list in the README for common issues with known workarounds.

Feel free to reopen if you have a workaround suggestion or get new information from FF.

One year later... Any solution for this?

I think this proposed workaround might solve it, but I haven't had enough of a change to look into it yet:
https://github.com/philipwalton/flexbugs/issues/136#issuecomment-199641030

If anyone needs a solution to this problem:
In my case instead of using "justify-content: flex-end", I did some trick by adding "direction: rtl" to the wrapper and then reversing it back to "ltr" inside the items

I found a workaround for this. Use justify-content: flex-start (or whatever, really) and add a **selector** > :first-child { margin-top: auto } so it pushes the rest of the items to the bottom of the flex container.

@patoezequiel Thank you! You saved me from wasting a lot of hours. This workaround still works.

@baig you're welcome!

Was this page helpful?
0 / 5 - 0 ratings