Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reloaddata does not wipe out older cells #205

Open
vividcode opened this issue Dec 4, 2013 · 0 comments
Open

reloaddata does not wipe out older cells #205

vividcode opened this issue Dec 4, 2013 · 0 comments

Comments

@vividcode
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant