Fixes for a container that changes scrolling orientation on resize