bunpro-srs / BunPro-iOS

iOS companion app for the BunPro Japanese grammar learning service.
https://bunpro.jp/
MIT License
5 stars 1 forks source link

Prevent grammar list from changing offset on reload #18

Closed Rion-Kaneshiro closed 4 years ago

Rion-Kaneshiro commented 5 years ago

The grammar list currently has a noticeable jump in content offset when the grammar reload finishes.

This has to do with the estimatedRowHeight property guessing the height of the rows and changing the offset if there are rows that are bigger.

A problem like this can easily by circumvented by saving the heights for each already displayed cell in tableView(_:willDisplay:forRowAt:).