[paging-scroll-view] Fix an exception thrown when NIPagingScrollView rotates…

Authored by stephanemoore on Sep 14 2017, 8:25 PM.

Description

[paging-scroll-view] Fix an exception thrown when NIPagingScrollView rotates with a zero frame ūüí•

When -pageScrollableDimension returns 0, _percentScrolledIntoFirstVisiblePage ends up as NaN because of divide-by-zero operations in willRotateToInterfaceOrientation:duration:. This patch guards against these divide-by-zero errors.

Also add tests to catch exceptions thrown when rotating NIPagingScrollView with a zero frame.

Details

Committed
stephanemooreSep 14 2017, 9:02 PM
Parents
rNIMBUSfc0aa3f2c663: Update travis.yml with iOS 9.3 SDK.
Branches
Unknown
Tags
Unknown