material
material copied to clipboard
Using md-wrap to reverse the order of children element.
Hi,
Currently in a project I am working on, I needed to reverse the order of buttons in a wrapping layout for small resolutions. I noticed [layout-wrap] allows me to wrap the child elements, but not in reverse. I would recommend adding something to handle this.
I've added to my CSS the concept of adding layout-wrap="reverse" to allow me to reverse the order of layouts.
[layout-wrap=reverse] {
flex-wrap: wrap-reverse;
}
Here's an example of it being used: http://codepen.io/ryanespin/pen/JdzgLj
This issue is closed as part of our ‘Surge Focus on Material 2' efforts. For details, see our forum posting @ http://bit.ly/1UhZyWs.