Flexbox fixes and document resize scoped (back) to top.