Improved positioning on resize.