mleibman/SlickGrid — Issue #227: getViewport (AKA getVisibleRange) returns incorrect value for bottom
Author: bruceharris
Created: 2011-10-31 17:35:27+00:00
State: open

Seems the grid's getViewPort() method always returns value for the .bottom attribute that is +1 from what it should be.

Test case: load this page
http://mleibman.github.com/SlickGrid/examples/example1-simple.html
and enter the below in console:
```grid.getViewport().bottom```
Returns 19; I believe .bottom should be 18, unless I am misunderstanding the point of this method, or missing a use case where the behavior is different?

Fixed by this commit https://github.com/bruceharris/SlickGrid/commit/c14f7398caf3c9633e05984a0f9f5790327ff3d1

Comments?

Thanks,
Bruce