Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's been some time in the making now. This has perhaps been the most requested feature yet (see #182), so I'm happy to present this. Finally
display: flexis ready for a wider audience!In case you want to read up on what flexbox layout is, see eg. flexbox layout at MDN for an introduction.
I've generally followed the CSS specification, although there are some minor differences. Not everything makes sense for RmlUi, and there are some details I've dropped for the sake of simplicity.
I encourage everyone to test and report back. I'm especially eager to rule out bugs in real world usage. Or just to see you guys have fun with it, screenshots are appreciated!
See the WIP flexbox documentation. It lists all the related properties and differences from CSS. It still needs a more detailed description of the properties, but you will get far with looking at CSS guides. There are also several examples in the Visual Tests sample.
Screenshots
Known limitation
display: flexdoesn't currently work properly on elements that are absolutely positioned or floated. This is the same situation as for tables, instead please wrap the flex container inside another div.I also need to clean up the commit history quite a bit.