Invalidates layout on rotation.