A quick experiment to play with column flex box for modal auto sizing.
Comparing old school solution with flex solution.
The modal:
- should take no more height than necessary to fit content.
- should not be taller than 90% of the window.
- should work on the last 2 versions of each major browser on desktop and mobile.
- install compass
- bower install
The height auto of the modal means that the 100% height or the section is not respected. Script needed to set that height.
Ran into problems in IE with clientHeight on a flex-item.
Chrome did not honour 100% and scroll on the flex-item content.