Skip to content

Commit c5eca74

Browse files
arschmitzscottgonzalez
authored andcommitted
Resizable: Fix line length issues
Ref jquerygh-1690
1 parent b74a8b6 commit c5eca74

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

ui/widgets/resizable.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
286286
this._on( this.handles[ i ], { "mousedown": that._mouseDown } );
287287
}
288288

289-
if ( this.elementIsWrapper && this.originalElement[ 0 ].nodeName.match( /^(textarea|input|select|button)$/i ) ) {
290-
289+
if ( this.elementIsWrapper &&
290+
this.originalElement[ 0 ]
291+
.nodeName
292+
.match( /^(textarea|input|select|button)$/i ) ) {
291293
axis = $( this.handles[ i ], this.element );
292294

293-
padWrapper = /sw|ne|nw|se|n|s/.test( i ) ? axis.outerHeight() : axis.outerWidth();
295+
padWrapper = /sw|ne|nw|se|n|s/.test( i ) ?
296+
axis.outerHeight() :
297+
axis.outerWidth();
294298

295299
padPos = [ "padding",
296300
/ne|nw|n/.test( i ) ? "Top" :
@@ -797,7 +801,10 @@ $.ui.plugin.add( "resizable", "animate", {
797801
ista = pr.length && ( /textarea/i ).test( pr[ 0 ].nodeName ),
798802
soffseth = ista && that._hasScroll( pr[ 0 ], "left" ) ? 0 : that.sizeDiff.height,
799803
soffsetw = ista ? 0 : that.sizeDiff.width,
800-
style = { width: ( that.size.width - soffsetw ), height: ( that.size.height - soffseth ) },
804+
style = {
805+
width: ( that.size.width - soffsetw ),
806+
height: ( that.size.height - soffseth )
807+
},
801808
left = ( parseFloat( that.element.css( "left" ) ) +
802809
( that.position.left - that.originalPosition.left ) ) || null,
803810
top = ( parseFloat( that.element.css( "top" ) ) +
@@ -839,7 +846,9 @@ $.ui.plugin.add( "resizable", "containment", {
839846
o = that.options,
840847
el = that.element,
841848
oc = o.containment,
842-
ce = ( oc instanceof $ ) ? oc.get( 0 ) : ( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
849+
ce = ( oc instanceof $ ) ?
850+
oc.get( 0 ) :
851+
( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
843852

844853
if ( !ce ) {
845854
return;

0 commit comments

Comments
 (0)