Update layout when doing auto-scroll.