aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2016-03-30 22:33:08 -0400
committerScott González <scott.gonzalez@gmail.com>2016-04-13 11:31:42 -0400
commitc5eca7443c6d6d425b08c4c6d93e77ccc2702fdc (patch)
treeca0e2fd0b5216189385e17b848c2847ae58f00f6 /ui
parentb74a8b68bd1e2922244a37ab6a39fb579ce429bb (diff)
downloadjquery-ui-c5eca7443c6d6d425b08c4c6d93e77ccc2702fdc.tar.gz
jquery-ui-c5eca7443c6d6d425b08c4c6d93e77ccc2702fdc.zip
Resizable: Fix line length issues
Ref gh-1690
Diffstat (limited to 'ui')
-rw-r--r--ui/widgets/resizable.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js
index a811c6334..74863a055 100644
--- a/ui/widgets/resizable.js
+++ b/ui/widgets/resizable.js
@@ -286,11 +286,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
this._on( this.handles[ i ], { "mousedown": that._mouseDown } );
}
- if ( this.elementIsWrapper && this.originalElement[ 0 ].nodeName.match( /^(textarea|input|select|button)$/i ) ) {
-
+ if ( this.elementIsWrapper &&
+ this.originalElement[ 0 ]
+ .nodeName
+ .match( /^(textarea|input|select|button)$/i ) ) {
axis = $( this.handles[ i ], this.element );
- padWrapper = /sw|ne|nw|se|n|s/.test( i ) ? axis.outerHeight() : axis.outerWidth();
+ padWrapper = /sw|ne|nw|se|n|s/.test( i ) ?
+ axis.outerHeight() :
+ axis.outerWidth();
padPos = [ "padding",
/ne|nw|n/.test( i ) ? "Top" :
@@ -797,7 +801,10 @@ $.ui.plugin.add( "resizable", "animate", {
ista = pr.length && ( /textarea/i ).test( pr[ 0 ].nodeName ),
soffseth = ista && that._hasScroll( pr[ 0 ], "left" ) ? 0 : that.sizeDiff.height,
soffsetw = ista ? 0 : that.sizeDiff.width,
- style = { width: ( that.size.width - soffsetw ), height: ( that.size.height - soffseth ) },
+ style = {
+ width: ( that.size.width - soffsetw ),
+ height: ( that.size.height - soffseth )
+ },
left = ( parseFloat( that.element.css( "left" ) ) +
( that.position.left - that.originalPosition.left ) ) || null,
top = ( parseFloat( that.element.css( "top" ) ) +
@@ -839,7 +846,9 @@ $.ui.plugin.add( "resizable", "containment", {
o = that.options,
el = that.element,
oc = o.containment,
- ce = ( oc instanceof $ ) ? oc.get( 0 ) : ( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
+ ce = ( oc instanceof $ ) ?
+ oc.get( 0 ) :
+ ( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
if ( !ce ) {
return;