Autorefresh on resize to auto fit max width