Skip to content

Commit 9dd2576

Browse files
arschmitzscottgonzalez
authored andcommitted
Scroll Parent: Fix line length issues
Ref gh-1690
1 parent c4e5d73 commit 9dd2576

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/scroll-parent.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ return $.fn.scrollParent = function( includeHidden ) {
3333
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
3434
return false;
3535
}
36-
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
36+
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
37+
parent.css( "overflow-x" ) );
3738
} ).eq( 0 );
3839

39-
return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
40+
return position === "fixed" || !scrollParent.length ?
41+
$( this[ 0 ].ownerDocument || document ) :
42+
scrollParent;
4043
};
4144

4245
} ) );

0 commit comments

Comments
 (0)