metaminded / tabulatr2

A very JS enhanced Tabulatr edition. Rails4, Ruby 2 required
Other
21 stars 10 forks source link

Window scrolls up when requesting uncached tabulatr page #51

Open mlt opened 7 years ago

mlt commented 7 years ago

If one clicks on a paginator button for non-cached page, JS currently hides tr before fetching data thus causing a window to effectively scroll up if tabulatr was at the end of not-so-empty page. This is somewhat disturbing as it makes a user to scroll down for each new page loaded. Once pages are cached, it is no longer a problem. I wonder if we can have some placeholder page full of   under a spinner while waiting for ajax stuff? Perhaps another workaround would be to hard code height with CSS. However this requires some calculations based on page size etc. I'm not even sure how to do it precisely. Shall we document it at least?