Fixed a bug where state changes wouldn't cause the the view to be scrolled to the top of the view.