Don't blindly refresh on resize event, compare new size instead