Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
javascript - resize bug
posted

Hello!

I found a problem in resizing a webgrid by javascript.
My code is like this:

<div id="resizediv">
     <[grid] height="100%" />
</div>

I use the grid with virtual-LoadOnDemand. The "resizediv" is resized to fit in the page.
Now a few definitions to make the description easier:

The database, which is displayed has 20 Rows.
1st size of the Grid: It could show 25 Rows without scollbar
2nd size of the Grid: It can show 5 Rows (and scrollbar is activated)

Now I view the page with the Browser and the second size, everything is alright. I can scroll down to the bottom of the grid. Now I resize the window to first size. Now there are only 5 Rows in the grid and no scrollbar.

I think the problem is, that the grid calculates the complete size of the rows-collection. Because of the size (for more then the rows in the collection) it deactivates the scrollbar, but without minding the position of the scroll bar.

Regards, Philipp