Now resizes properly right after page load.