I'm seeing an issue when a flow view is scrollable and then the device rotates. It only happens when certain conditions are met. Here's how to reproduce:
1) Create a flow layout that fits on the entire screen in portrait orientation.
2) When rotated to landscape, the flow layout should exist such that it is higher than the screen's height. The flow will be scrollable.
3) Scroll to the bottom.
4) Rotate back to portrait orientation.
If you get it to fail, you will notice that the cells resized appropriately, and everything should fit on the screen (it doesn't scroll), yet the content offset is maintained so that the top cells get clipped. To fix, the user has to rotate to landscape, scroll up, and then rotate back to portrait.
I'm also seeing a similar issue when I'm resizing nested flow layouts. It seems that the flow view does not reset it's offset when the content fits inside the view. Thoughts?
Hi Caylan,
Thank you for bringing this to our attention.
I have logged this in our internal issue tracking system with ID of 176086 and I have created a private case for you in order to notify you when the issue is resolved - CAS-140506-M0V2B6. You can view your currently active cases from this link: https://ko.infragistics.com/my-account/support-activity
Correct, the following delegate method is wired up to result in a different size based on orientation: -(CGSize)numberOfBlocksInViewport:(IGFlowLayoutView *)flowLayoutView.
Just so that I know i'm reproducing the same issue. When you rotate, are you changing the number of horizontal blocks and the number of vertical blocks? Otherwise, regardless of your orientation, the flowLayout would be scaled to fit. That means if you were scrollable as vertical, then you're scrollable as horizontal, vice versa.
If that is indeed the case, then i did find a bug there. Basically, we adjust the contentOffset of the flowLayout, based on the new bounds. So that you're essentially in the same scrolling position. We need to add additional logic there, to avoid that if you're changing the layout.
-SteveZ