You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically I need to handle orientation change while keeping the number of columns constant (2).
So I call reloaddata because that is the only way I know of how to tell AQGridView newer cell size through portraitGridCellSizeForGridView.
This works as intended the first time when I change orientation from Portrait to Landscape.
However, when I again change to Portrait back, the bigger sized cells from Landscape orientation do not disappear. They are visible along with newer Portrait sized cells.
I think this is due to the fact that reloaddata simply removes and recreates cells within _visibleCells array.
But I want to know what is proper way to handle orientation because I know reloading should not be the way to do it.
The text was updated successfully, but these errors were encountered:
Basically I need to handle orientation change while keeping the number of columns constant (2).
So I call
reloaddata
because that is the only way I know of how to tell AQGridView newer cell size throughportraitGridCellSizeForGridView
.This works as intended the first time when I change orientation from Portrait to Landscape.
However, when I again change to Portrait back, the bigger sized cells from Landscape orientation do not disappear. They are visible along with newer Portrait sized cells.
I think this is due to the fact that
reloaddata
simply removes and recreates cells within_visibleCells
array.But I want to know what is proper way to handle orientation because I know reloading should not be the way to do it.
The text was updated successfully, but these errors were encountered: