Suppose I have a ShinobiDataGrid with a thousand rows. It is in the detail pane of a splitview. And it is scrolled down half way through the thousand rows.
And I have set the Autoresizing mask on the grid:
_grid.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;
(I'm using C# here)
In this configuration, when I rotate the device, it triggers a reload of all the visible cells PLUS all the cells ABOVE the scroll position. It is calling PrepareCell... for roughly 500 rows of cells that it does not need.
I am wondering if this is a bug. It would seem to me that the grid should never reload the non-visible cells.
Without the AutoresizingMask line, it does not do this. But that leaves the grid in the wrong size for the new orientation of the splitview.
I do notice that none of the Xamarin samples set AutoresizingMask.