gdepourtales / ng-cells

AngularJS Table directive that draws a table of data with different features
http://gdepourtales.github.io/ng-cells/
Other
77 stars 17 forks source link

Fix/detect vscroll bar height dynamically #16

Closed kayhadrin closed 9 years ago

kayhadrin commented 9 years ago

This PR proposes to fix an issue with the calculation of the vertical scroll bar height.

It needs to be detected dynamically instead of only at the first time because the vertical scrollbar may change of size due to other external reasons.

e.g. When the ng-cells directive is used inside a hidden DIV at the beginning and is then shown after some user interaction. At first, the parent block of the directive is hidden (display:none), so the vertical scrollbar height is 0. Then when the parent block is displayed, the vertical scrollbar height will have a positive value.

gdepourtales commented 9 years ago

Thanks a lot !