@@ -386,8 +386,8 @@ $.widget("ui.draggable", $.ui.mouse, {
386
386
}
387
387
388
388
return {
389
- top : po . top + ( parseInt ( this . offsetParent . css ( "borderTopWidth" ) , 10 ) || 0 ) ,
390
- left : po . left + ( parseInt ( this . offsetParent . css ( "borderLeftWidth" ) , 10 ) || 0 )
389
+ top : po . top + ( parseInt ( this . offsetParent . css ( "borderTopWidth" ) , 10 ) || 0 ) ,
390
+ left : po . left + ( parseInt ( this . offsetParent . css ( "borderLeftWidth" ) , 10 ) || 0 )
391
391
} ;
392
392
393
393
} ,
@@ -409,10 +409,10 @@ $.widget("ui.draggable", $.ui.mouse, {
409
409
410
410
_cacheMargins : function ( ) {
411
411
this . margins = {
412
- left : ( parseInt ( this . element . css ( "marginLeft" ) , 10 ) || 0 ) ,
413
- top : ( parseInt ( this . element . css ( "marginTop" ) , 10 ) || 0 ) ,
414
- right : ( parseInt ( this . element . css ( "marginRight" ) , 10 ) || 0 ) ,
415
- bottom : ( parseInt ( this . element . css ( "marginBottom" ) , 10 ) || 0 )
412
+ left : ( parseInt ( this . element . css ( "marginLeft" ) , 10 ) || 0 ) ,
413
+ top : ( parseInt ( this . element . css ( "marginTop" ) , 10 ) || 0 ) ,
414
+ right : ( parseInt ( this . element . css ( "marginRight" ) , 10 ) || 0 ) ,
415
+ bottom : ( parseInt ( this . element . css ( "marginBottom" ) , 10 ) || 0 )
416
416
} ;
417
417
} ,
418
418
@@ -429,7 +429,7 @@ $.widget("ui.draggable", $.ui.mouse, {
429
429
o = this . options ,
430
430
document = this . document [ 0 ] ;
431
431
432
- this . relative_container = null ;
432
+ this . relativeContainer = null ;
433
433
434
434
if ( ! o . containment ) {
435
435
this . containment = null ;
@@ -480,7 +480,7 @@ $.widget("ui.draggable", $.ui.mouse, {
480
480
( over ? Math . max ( ce . scrollWidth , ce . offsetWidth ) : ce . offsetWidth ) - ( parseInt ( c . css ( "borderRightWidth" ) , 10 ) || 0 ) - ( parseInt ( c . css ( "paddingRight" ) , 10 ) || 0 ) - this . helperProportions . width - this . margins . left - this . margins . right ,
481
481
( over ? Math . max ( ce . scrollHeight , ce . offsetHeight ) : ce . offsetHeight ) - ( parseInt ( c . css ( "borderBottomWidth" ) , 10 ) || 0 ) - ( parseInt ( c . css ( "paddingBottom" ) , 10 ) || 0 ) - this . helperProportions . height - this . margins . top - this . margins . bottom
482
482
] ;
483
- this . relative_container = c ;
483
+ this . relativeContainer = c ;
484
484
} ,
485
485
486
486
_convertPositionTo : function ( d , pos ) {
@@ -533,8 +533,8 @@ $.widget("ui.draggable", $.ui.mouse, {
533
533
// If we are not dragging yet, we won't check for options
534
534
if ( constrainPosition ) {
535
535
if ( this . containment ) {
536
- if ( this . relative_container ) {
537
- co = this . relative_container . offset ( ) ;
536
+ if ( this . relativeContainer ) {
537
+ co = this . relativeContainer . offset ( ) ;
538
538
containment = [
539
539
this . containment [ 0 ] + co . left ,
540
540
this . containment [ 1 ] + co . top ,
@@ -978,8 +978,8 @@ $.ui.plugin.add("draggable", "stack", {
978
978
start : function ( event , ui , instance ) {
979
979
var min ,
980
980
o = instance . options ,
981
- group = $ . makeArray ( $ ( o . stack ) ) . sort ( function ( a , b ) {
982
- return ( parseInt ( $ ( a ) . css ( "zIndex" ) , 10 ) || 0 ) - ( parseInt ( $ ( b ) . css ( "zIndex" ) , 10 ) || 0 ) ;
981
+ group = $ . makeArray ( $ ( o . stack ) ) . sort ( function ( a , b ) {
982
+ return ( parseInt ( $ ( a ) . css ( "zIndex" ) , 10 ) || 0 ) - ( parseInt ( $ ( b ) . css ( "zIndex" ) , 10 ) || 0 ) ;
983
983
} ) ;
984
984
985
985
if ( ! group . length ) { return ; }
0 commit comments