This occurs on iPhone 6 ONLY scrollableView.currentPage initialized at index 3, displays index 1 (by setting its currentPage variable on creation).
Expected results: Item at index 3 is shown
Actual results: Item at index 1 is shown
Unzip attachment into any Resources folder for a Classic Titanium project.
- Run sample as iPhone6 and select red box
- Watch the monitor logs.
- Run sample as iPhone5/Android and select red box
- Watch the monitor logs. The console displays the following:
If we do not put this.swiper (the scrollableView) into a container view, then the issue goes away only so long as its parent container has a 'vertical' layout (the parent container in the sample app is FirstView.js).
When this 'vertical' layout property is removed from FirstView, we see the issue return, but slightly differently – the index gets set to 2, instead of 1 (when it is initialized as 3).
Unfortunately, we cannot use this as a workaround, as the view structure we need to build for the actual app needs the scrollableView to be in a container with other views, or to be set up without the vertical layout.