gmoledina / GMGridView

A performant Grid-View for iOS (iPhone/iPad) that allows sorting of views with gestures (the user can move the items with his finger to sort them) and pinching/rotating/panning gestures allow the user to play with the view and toggle from the cellview to a fullsize display.
MIT License
2.3k stars 512 forks source link

if cell width is quite different, grid will show wrong cell when rotating #193

Open Jia-Shen opened 11 years ago

Jia-Shen commented 11 years ago

if portrait cell width is as twice as landscape, rotating the screen, grid will show wrong cell, this because the pageX is wrong. the contentsize is changed, the contentoffset is still the same value, so the pageX will be wrong. the contentoffset should be saved before the contentsize is changed. or keep the pagenumber all the time.