@@ -286,11 +286,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
286
286
this . _on ( this . handles [ i ] , { "mousedown" : that . _mouseDown } ) ;
287
287
}
288
288
289
- if ( this . elementIsWrapper && this . originalElement [ 0 ] . nodeName . match ( / ^ ( t e x t a r e a | i n p u t | s e l e c t | b u t t o n ) $ / i ) ) {
290
-
289
+ if ( this . elementIsWrapper &&
290
+ this . originalElement [ 0 ]
291
+ . nodeName
292
+ . match ( / ^ ( t e x t a r e a | i n p u t | s e l e c t | b u t t o n ) $ / i ) ) {
291
293
axis = $ ( this . handles [ i ] , this . element ) ;
292
294
293
- padWrapper = / s w | n e | n w | s e | n | s / . test ( i ) ? axis . outerHeight ( ) : axis . outerWidth ( ) ;
295
+ padWrapper = / s w | n e | n w | s e | n | s / . test ( i ) ?
296
+ axis . outerHeight ( ) :
297
+ axis . outerWidth ( ) ;
294
298
295
299
padPos = [ "padding" ,
296
300
/ n e | n w | n / . test ( i ) ? "Top" :
@@ -797,7 +801,10 @@ $.ui.plugin.add( "resizable", "animate", {
797
801
ista = pr . length && ( / t e x t a r e a / i ) . test ( pr [ 0 ] . nodeName ) ,
798
802
soffseth = ista && that . _hasScroll ( pr [ 0 ] , "left" ) ? 0 : that . sizeDiff . height ,
799
803
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
+ } ,
801
808
left = ( parseFloat ( that . element . css ( "left" ) ) +
802
809
( that . position . left - that . originalPosition . left ) ) || null ,
803
810
top = ( parseFloat ( that . element . css ( "top" ) ) +
@@ -839,7 +846,9 @@ $.ui.plugin.add( "resizable", "containment", {
839
846
o = that . options ,
840
847
el = that . element ,
841
848
oc = o . containment ,
842
- ce = ( oc instanceof $ ) ? oc . get ( 0 ) : ( / p a r e n t / . test ( oc ) ) ? el . parent ( ) . get ( 0 ) : oc ;
849
+ ce = ( oc instanceof $ ) ?
850
+ oc . get ( 0 ) :
851
+ ( / p a r e n t / . test ( oc ) ) ? el . parent ( ) . get ( 0 ) : oc ;
843
852
844
853
if ( ! ce ) {
845
854
return ;
0 commit comments