Yarden Eitan 89b43fd8ff [TabBarView] Scroll to selected item when there is an orientation/size change.
We do not update needsScrollToSelectedItem to YES in every setBounds or just remove the flag and have it scroll to the selected item in every layoutSubviews because this is a UIScrollView so every scroll updates the contentOffset which then triggers these methods. We want to only trigger this code path in orientation/size changes.

PiperOrigin-RevId: 333731208
2020-09-25 07:46:14 -07:00
..