AlanQuatermain / AQGridView

A grid view for iPhone/iPad, designed to look similar to NSCollectionView.
http://quatermain.tumblr.com/
BSD 3-Clause "New" or "Revised" License
2.37k stars 450 forks source link

Fix large tables with large cells to stay in place when device is rotated #152

Closed whatcher2 closed 12 years ago

whatcher2 commented 12 years ago

After scrolling to the middle of a table of 120 grid squares with 3x4 cells in portrait on an ipad and then rotating to landscape, the 4x3 layout shows completely different cells than those viewed in portrait. It seems contentOffset.y needs to be adjusted proportionally to the change in height so the content stays the same when the bounds change. This fix only works for vertical tables.