mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
implemented $.fn.scrollParent (candidate for jQuery core, see ticket #3589 in Jquery's trac)
This commit is contained in:
parent
3206b611b1
commit
ffa5f16169
@ -169,6 +169,12 @@ $.fn.extend({
|
|||||||
.attr('unselectable', 'on')
|
.attr('unselectable', 'on')
|
||||||
.css('MozUserSelect', 'none')
|
.css('MozUserSelect', 'none')
|
||||||
.bind('selectstart.ui', function() { return false; });
|
.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);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user