Allow auto re-render when window size is changed.