@@ -26,7 +26,7 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
2626
2727 $ . extend ( o , {
2828 _aspectRatio : ! ! ( o . aspectRatio ) ,
29- proxy : o . proxy || o . ghost || o . animate ? o . proxy || 'proxy' : null ,
29+ helper : o . helper || o . ghost || o . animate ? o . helper || 'proxy' : null ,
3030 knobHandles : o . knobHandles === true ? 'ui-resizable-knob-handle' : o . knobHandles
3131 } ) ;
3232
@@ -292,8 +292,8 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
292292 //Store needed variables
293293 this . offset = this . helper . offset ( ) ;
294294 this . position = { left : curleft , top : curtop } ;
295- this . size = o . proxy || ie6 ? { width : el . outerWidth ( ) , height : el . outerHeight ( ) } : { width : el . width ( ) , height : el . height ( ) } ;
296- this . originalSize = o . proxy || ie6 ? { width : el . outerWidth ( ) , height : el . outerHeight ( ) } : { width : el . width ( ) , height : el . height ( ) } ;
295+ this . size = o . helper || ie6 ? { width : el . outerWidth ( ) , height : el . outerHeight ( ) } : { width : el . width ( ) , height : el . height ( ) } ;
296+ this . originalSize = o . helper || ie6 ? { width : el . outerWidth ( ) , height : el . outerHeight ( ) } : { width : el . width ( ) , height : el . height ( ) } ;
297297 this . originalPosition = { left : curleft , top : curtop } ;
298298 this . sizeDiff = { width : el . outerWidth ( ) - el . width ( ) , height : el . outerHeight ( ) - el . height ( ) } ;
299299 this . originalMousePosition = { left : e . pageX , top : e . pageY } ;
@@ -333,7 +333,7 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
333333 width : this . size . width + "px" , height : this . size . height + "px"
334334 } ) ;
335335
336- if ( ! o . proxy && o . proportionallyResize )
336+ if ( ! o . helper && o . proportionallyResize )
337337 this . _proportionallyResize ( ) ;
338338
339339 this . _updateCache ( data ) ;
@@ -348,7 +348,7 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
348348 this . options . resizing = false ;
349349 var o = this . options , num = function ( v ) { return parseInt ( v , 10 ) || 0 ; } , self = this ;
350350
351- if ( o . proxy ) {
351+ if ( o . helper ) {
352352 var pr = o . proportionallyResize , ista = pr && ( / t e x t a r e a / i) . test ( pr . get ( 0 ) . nodeName ) ,
353353 soffseth = ista && $ . ui . hasScroll ( pr . get ( 0 ) , 'left' ) /* TODO - jump height */ ? 0 : self . sizeDiff . height ,
354354 soffsetw = ista ? 0 : self . sizeDiff . width ;
@@ -360,15 +360,15 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
360360 if ( ! o . animate )
361361 this . element . css ( $ . extend ( s , { top : top , left : left } ) ) ;
362362
363- if ( o . proxy && ! o . animate ) this . _proportionallyResize ( ) ;
363+ if ( o . helper && ! o . animate ) this . _proportionallyResize ( ) ;
364364 }
365365
366366 if ( o . preserveCursor )
367367 $ ( 'body' ) . css ( 'cursor' , 'auto' ) ;
368368
369369 this . propagate ( "stop" , e ) ;
370370
371- if ( o . proxy ) this . helper . remove ( ) ;
371+ if ( o . helper ) this . helper . remove ( ) ;
372372
373373 return false ;
374374 } ,
@@ -446,14 +446,14 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
446446 var el = this . element , o = this . options ;
447447 this . elementOffset = el . offset ( ) ;
448448
449- if ( o . proxy ) {
449+ if ( o . helper ) {
450450 this . helper = this . helper || $ ( '<div style="overflow:hidden;"></div>' ) ;
451451
452452 // fix ie6 offset
453453 var ie6 = $ . browser . msie && $ . browser . version < 7 , ie6offset = ( ie6 ? 1 : 0 ) ,
454454 pxyoffset = ( ie6 ? 2 : - 1 ) ;
455455
456- this . helper . addClass ( o . proxy ) . css ( {
456+ this . helper . addClass ( o . helper ) . css ( {
457457 width : el . outerWidth ( ) + pxyoffset ,
458458 height : el . outerHeight ( ) + pxyoffset ,
459459 position : 'absolute' ,
@@ -565,20 +565,20 @@ $.ui.plugin.add("resizable", "containment", {
565565 if ( ce [ 0 ] != document && / s t a t i c / . test ( ce . css ( 'position' ) ) )
566566 cop = self . containerPosition ;
567567
568- if ( cp . left < ( o . proxy ? co . left : cop . left ) ) {
569- self . size . width = self . size . width + ( o . proxy ? ( self . position . left - co . left ) : ( self . position . left - cop . left ) ) ;
568+ if ( cp . left < ( o . helper ? co . left : cop . left ) ) {
569+ self . size . width = self . size . width + ( o . helper ? ( self . position . left - co . left ) : ( self . position . left - cop . left ) ) ;
570570 if ( pRatio ) self . size . height = self . size . width * o . aspectRatio ;
571- self . position . left = o . proxy ? co . left : cop . left ;
571+ self . position . left = o . helper ? co . left : cop . left ;
572572 }
573573
574- if ( cp . top < ( o . proxy ? co . top : 0 ) ) {
575- self . size . height = self . size . height + ( o . proxy ? ( self . position . top - co . top ) : self . position . top ) ;
574+ if ( cp . top < ( o . helper ? co . top : 0 ) ) {
575+ self . size . height = self . size . height + ( o . helper ? ( self . position . top - co . top ) : self . position . top ) ;
576576 if ( pRatio ) self . size . width = self . size . height / o . aspectRatio ;
577- self . position . top = o . proxy ? co . top : 0 ;
577+ self . position . top = o . helper ? co . top : 0 ;
578578 }
579579
580- var woset = ( o . proxy ? self . offset . left - co . left : ( self . position . left - cop . left ) ) + self . sizeDiff . width ,
581- hoset = ( o . proxy ? self . offset . top - co . top : self . position . top ) + self . sizeDiff . height ;
580+ var woset = ( o . helper ? self . offset . left - co . left : ( self . position . left - cop . left ) ) + self . sizeDiff . width ,
581+ hoset = ( o . helper ? self . offset . top - co . top : self . position . top ) + self . sizeDiff . height ;
582582
583583 if ( woset + self . size . width >= self . parentData . width ) {
584584 self . size . width = self . parentData . width - woset ;
@@ -598,10 +598,10 @@ $.ui.plugin.add("resizable", "containment", {
598598 var helper = $ ( self . helper ) , ho = helper . offset ( ) , w = helper . innerWidth ( ) , h = helper . innerHeight ( ) ;
599599
600600
601- if ( o . proxy && ! o . animate && / r e l a t i v e / . test ( ce . css ( 'position' ) ) )
601+ if ( o . helper && ! o . animate && / r e l a t i v e / . test ( ce . css ( 'position' ) ) )
602602 $ ( this ) . css ( { left : ( ho . left - co . left ) , top : ( ho . top - co . top ) , width : w , height : h } ) ;
603603
604- if ( o . proxy && ! o . animate && / s t a t i c / . test ( ce . css ( 'position' ) ) )
604+ if ( o . helper && ! o . animate && / s t a t i c / . test ( ce . css ( 'position' ) ) )
605605 $ ( this ) . css ( { left : cop . left + ( ho . left - co . left ) , top : cop . top + ( ho . top - co . top ) , width : w , height : h } ) ;
606606
607607 }
0 commit comments