http://css-tricks.com/snippets/css/a-guide-to-flexbox/
should help you avoid using `resize` events