style changes and scroll offset