Sha256: 92690727c0b757f38352f9c3b3f130e22fb2ed26c2fc92a73b375d636137ede0
Contents?: true
Size: 612 Bytes
Versions: 26
Compression:
Stored size: 612 Bytes
Contents
// https://github.com/slindberg/jquery-scrollparent jQuery.fn.scrollParent = function() { var position = this.css( "position" ), excludeStaticParent = position === "absolute", scrollParent = this.parents().filter( function() { var parent = $( this ); if ( excludeStaticParent && parent.css( "position" ) === "static" ) { return false; } return (/(auto|scroll)/).test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) ); }).eq( 0 ); return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent; };
Version data entries
26 entries across 26 versions & 2 rubygems