stackfull / angular-virtual-scroll

Source for the sf.virtualScroll module for AngularJS
MIT License
262 stars 42 forks source link

More smarts needed in finding the viewport #4

Closed stackfull closed 11 years ago

stackfull commented 11 years ago

At the moment, it's just the immediate parent of the content element.

stackfull commented 11 years ago

Smarts were added in 183137b763835b27ce56ebb5738fee3d20bafce1 and are in the 0.4.0 release.

The viewport is now searched, starting with the grandparent, by looking for an element with 1 child element and no text content. Also a blacklist of unsuitable element tags is used to skip tables.