Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

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

Closed
KittyGiraudel opened this issue Jun 1, 2015 · 10 comments
Closed

Comments

@KittyGiraudel
Copy link
Contributor

Related tweet: https://twitter.com/HugoGiraudel/status/601740314282430464.
Relevant demo: http://codepen.io/HugoGiraudel/pen/EjgeaY/.

@philipwalton
Copy link
Owner

Did you have a workaround in mind for this?

@KittyGiraudel
Copy link
Contributor Author

Nope. :(

@philipwalton
Copy link
Owner

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.

@lyziane
Copy link

lyziane commented Jun 30, 2016

One year later... Any solution for this?

@philipwalton
Copy link
Owner

I think this proposed workaround might solve it, but I haven't had enough of a change to look into it yet:
#136 (comment)

@lyziane
Copy link

lyziane commented Aug 26, 2016

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

@patricio-ezequiel-hondagneu-roig

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.

@baig
Copy link

baig commented May 28, 2019

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

@patricio-ezequiel-hondagneu-roig

@baig you're welcome!

@qalqi
Copy link

qalqi commented Jun 8, 2020

flex-direction: row-reverse;
overflow: auto;

https://stackoverflow.com/questions/47372148/overflow-auto-not-working-with-justify-content-flex-end

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

No branches or pull requests

6 participants