Ticket #3589 (closed feature)
Add scrollParent() method to detect the scrolling parent
|Reported by:||paul||Owned by:||brandon|
Similar to how jQuery.fn.offsetParent works, this function returns the immediate scrolling parent.
This means in detail, the first element in parents() that has one of the following css attributes set to auto or scroll: overflow, overflow-x, overflow-y.
It's especially useful in anything collision detection related - 10+ instances in jQuery UI, for example could be made a lot shorter.
- Cc paul, flesler added
- need changed from Review to Test Case