Skip to content
Permalink
Browse files

implemented $.fn.scrollParent (candidate for jQuery core, see ticket …

…#3589 in Jquery's trac)
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Nov 10, 2008
1 parent 3206b61 commit ffa5f16169f62deaa984fecb2c52f3e9528b95cf
Showing with 6 additions and 0 deletions.
  1. +6 −0 ui/ui.core.js
@@ -169,6 +169,12 @@ $.fn.extend({
.attr('unselectable', 'on')
.css('MozUserSelect', 'none')
.bind('selectstart.ui', function() { return false; });
},

scrollParent: function() {
return $(this).parents().filter(function() {
return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
}).eq(0);
}

});

0 comments on commit ffa5f16

Please sign in to comment.
You can’t perform that action at this time.