Bug with Scrollbar after redefining datafetch & pager.size

Hi,

I’m trying to add ability to set number of visible rows per page, but for some reason the second page scrollbar gets taller and keeps loading data when scrolling down.

I think there is a bug somewhere, here is a snippet https://snippet.webix.com/den0pubr to replicate the issue change the “item per page” to 100 or 200, you will notice that the scrollbar size changes but on 2nd page … that scrollbar size doesn’t match the one on first page and when scrolling down it keep calling ajax to load more data.

ie. to see what I’m talking about change the “item per page” to 100 and keep switching between page 1 & 2, you will notice the weird issue with vertical scrollbar size.

Thanks

Hello, @mgraph2010

We can confirm the issue. Thank you for reporting!
We will fix it.

OK @AlenaLisava

You’re welcome

Hello,

We have considered the issue and suggest that you should convert select box value to number as required by documentation (please, observe number type there). String values are unexpected and cause the problem there:

https://docs.webix.com/api__ui.pager_size_config.html
https://docs.webix.com/api__virtualrenderstack_datafetch_config.html

Please, check the corrected snippet: Code Snippet

Thank you for understanding!

Hi @Helga

Thanks very much for investigating this, you’re a star.

All the best