Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: draggable.js
/*!
[0] Fix | Delete
* jQuery UI Draggable 1.13.3
[1] Fix | Delete
* https://jqueryui.com
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright OpenJS Foundation and other contributors
[4] Fix | Delete
* Released under the MIT license.
[5] Fix | Delete
* https://jquery.org/license
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
//>>label: Draggable
[9] Fix | Delete
//>>group: Interactions
[10] Fix | Delete
//>>description: Enables dragging functionality for any element.
[11] Fix | Delete
//>>docs: https://api.jqueryui.com/draggable/
[12] Fix | Delete
//>>demos: https://jqueryui.com/draggable/
[13] Fix | Delete
//>>css.structure: ../../themes/base/draggable.css
[14] Fix | Delete
[15] Fix | Delete
( function( factory ) {
[16] Fix | Delete
"use strict";
[17] Fix | Delete
[18] Fix | Delete
if ( typeof define === "function" && define.amd ) {
[19] Fix | Delete
[20] Fix | Delete
// AMD. Register as an anonymous module.
[21] Fix | Delete
define( [
[22] Fix | Delete
"jquery",
[23] Fix | Delete
"./mouse",
[24] Fix | Delete
"../data",
[25] Fix | Delete
"../plugin",
[26] Fix | Delete
"../safe-active-element",
[27] Fix | Delete
"../safe-blur",
[28] Fix | Delete
"../scroll-parent",
[29] Fix | Delete
"../version",
[30] Fix | Delete
"../widget"
[31] Fix | Delete
], factory );
[32] Fix | Delete
} else {
[33] Fix | Delete
[34] Fix | Delete
// Browser globals
[35] Fix | Delete
factory( jQuery );
[36] Fix | Delete
}
[37] Fix | Delete
} )( function( $ ) {
[38] Fix | Delete
"use strict";
[39] Fix | Delete
[40] Fix | Delete
$.widget( "ui.draggable", $.ui.mouse, {
[41] Fix | Delete
version: "1.13.3",
[42] Fix | Delete
widgetEventPrefix: "drag",
[43] Fix | Delete
options: {
[44] Fix | Delete
addClasses: true,
[45] Fix | Delete
appendTo: "parent",
[46] Fix | Delete
axis: false,
[47] Fix | Delete
connectToSortable: false,
[48] Fix | Delete
containment: false,
[49] Fix | Delete
cursor: "auto",
[50] Fix | Delete
cursorAt: false,
[51] Fix | Delete
grid: false,
[52] Fix | Delete
handle: false,
[53] Fix | Delete
helper: "original",
[54] Fix | Delete
iframeFix: false,
[55] Fix | Delete
opacity: false,
[56] Fix | Delete
refreshPositions: false,
[57] Fix | Delete
revert: false,
[58] Fix | Delete
revertDuration: 500,
[59] Fix | Delete
scope: "default",
[60] Fix | Delete
scroll: true,
[61] Fix | Delete
scrollSensitivity: 20,
[62] Fix | Delete
scrollSpeed: 20,
[63] Fix | Delete
snap: false,
[64] Fix | Delete
snapMode: "both",
[65] Fix | Delete
snapTolerance: 20,
[66] Fix | Delete
stack: false,
[67] Fix | Delete
zIndex: false,
[68] Fix | Delete
[69] Fix | Delete
// Callbacks
[70] Fix | Delete
drag: null,
[71] Fix | Delete
start: null,
[72] Fix | Delete
stop: null
[73] Fix | Delete
},
[74] Fix | Delete
_create: function() {
[75] Fix | Delete
[76] Fix | Delete
if ( this.options.helper === "original" ) {
[77] Fix | Delete
this._setPositionRelative();
[78] Fix | Delete
}
[79] Fix | Delete
if ( this.options.addClasses ) {
[80] Fix | Delete
this._addClass( "ui-draggable" );
[81] Fix | Delete
}
[82] Fix | Delete
this._setHandleClassName();
[83] Fix | Delete
[84] Fix | Delete
this._mouseInit();
[85] Fix | Delete
},
[86] Fix | Delete
[87] Fix | Delete
_setOption: function( key, value ) {
[88] Fix | Delete
this._super( key, value );
[89] Fix | Delete
if ( key === "handle" ) {
[90] Fix | Delete
this._removeHandleClassName();
[91] Fix | Delete
this._setHandleClassName();
[92] Fix | Delete
}
[93] Fix | Delete
},
[94] Fix | Delete
[95] Fix | Delete
_destroy: function() {
[96] Fix | Delete
if ( ( this.helper || this.element ).is( ".ui-draggable-dragging" ) ) {
[97] Fix | Delete
this.destroyOnClear = true;
[98] Fix | Delete
return;
[99] Fix | Delete
}
[100] Fix | Delete
this._removeHandleClassName();
[101] Fix | Delete
this._mouseDestroy();
[102] Fix | Delete
},
[103] Fix | Delete
[104] Fix | Delete
_mouseCapture: function( event ) {
[105] Fix | Delete
var o = this.options;
[106] Fix | Delete
[107] Fix | Delete
// Among others, prevent a drag on a resizable-handle
[108] Fix | Delete
if ( this.helper || o.disabled ||
[109] Fix | Delete
$( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
[110] Fix | Delete
return false;
[111] Fix | Delete
}
[112] Fix | Delete
[113] Fix | Delete
//Quit if we're not on a valid handle
[114] Fix | Delete
this.handle = this._getHandle( event );
[115] Fix | Delete
if ( !this.handle ) {
[116] Fix | Delete
return false;
[117] Fix | Delete
}
[118] Fix | Delete
[119] Fix | Delete
this._blurActiveElement( event );
[120] Fix | Delete
[121] Fix | Delete
this._blockFrames( o.iframeFix === true ? "iframe" : o.iframeFix );
[122] Fix | Delete
[123] Fix | Delete
return true;
[124] Fix | Delete
[125] Fix | Delete
},
[126] Fix | Delete
[127] Fix | Delete
_blockFrames: function( selector ) {
[128] Fix | Delete
this.iframeBlocks = this.document.find( selector ).map( function() {
[129] Fix | Delete
var iframe = $( this );
[130] Fix | Delete
[131] Fix | Delete
return $( "<div>" )
[132] Fix | Delete
.css( "position", "absolute" )
[133] Fix | Delete
.appendTo( iframe.parent() )
[134] Fix | Delete
.outerWidth( iframe.outerWidth() )
[135] Fix | Delete
.outerHeight( iframe.outerHeight() )
[136] Fix | Delete
.offset( iframe.offset() )[ 0 ];
[137] Fix | Delete
} );
[138] Fix | Delete
},
[139] Fix | Delete
[140] Fix | Delete
_unblockFrames: function() {
[141] Fix | Delete
if ( this.iframeBlocks ) {
[142] Fix | Delete
this.iframeBlocks.remove();
[143] Fix | Delete
delete this.iframeBlocks;
[144] Fix | Delete
}
[145] Fix | Delete
},
[146] Fix | Delete
[147] Fix | Delete
_blurActiveElement: function( event ) {
[148] Fix | Delete
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
[149] Fix | Delete
target = $( event.target );
[150] Fix | Delete
[151] Fix | Delete
// Don't blur if the event occurred on an element that is within
[152] Fix | Delete
// the currently focused element
[153] Fix | Delete
// See #10527, #12472
[154] Fix | Delete
if ( target.closest( activeElement ).length ) {
[155] Fix | Delete
return;
[156] Fix | Delete
}
[157] Fix | Delete
[158] Fix | Delete
// Blur any element that currently has focus, see #4261
[159] Fix | Delete
$.ui.safeBlur( activeElement );
[160] Fix | Delete
},
[161] Fix | Delete
[162] Fix | Delete
_mouseStart: function( event ) {
[163] Fix | Delete
[164] Fix | Delete
var o = this.options;
[165] Fix | Delete
[166] Fix | Delete
//Create and append the visible helper
[167] Fix | Delete
this.helper = this._createHelper( event );
[168] Fix | Delete
[169] Fix | Delete
this._addClass( this.helper, "ui-draggable-dragging" );
[170] Fix | Delete
[171] Fix | Delete
//Cache the helper size
[172] Fix | Delete
this._cacheHelperProportions();
[173] Fix | Delete
[174] Fix | Delete
//If ddmanager is used for droppables, set the global draggable
[175] Fix | Delete
if ( $.ui.ddmanager ) {
[176] Fix | Delete
$.ui.ddmanager.current = this;
[177] Fix | Delete
}
[178] Fix | Delete
[179] Fix | Delete
/*
[180] Fix | Delete
* - Position generation -
[181] Fix | Delete
* This block generates everything position related - it's the core of draggables.
[182] Fix | Delete
*/
[183] Fix | Delete
[184] Fix | Delete
//Cache the margins of the original element
[185] Fix | Delete
this._cacheMargins();
[186] Fix | Delete
[187] Fix | Delete
//Store the helper's css position
[188] Fix | Delete
this.cssPosition = this.helper.css( "position" );
[189] Fix | Delete
this.scrollParent = this.helper.scrollParent( true );
[190] Fix | Delete
this.offsetParent = this.helper.offsetParent();
[191] Fix | Delete
this.hasFixedAncestor = this.helper.parents().filter( function() {
[192] Fix | Delete
return $( this ).css( "position" ) === "fixed";
[193] Fix | Delete
} ).length > 0;
[194] Fix | Delete
[195] Fix | Delete
//The element's absolute position on the page minus margins
[196] Fix | Delete
this.positionAbs = this.element.offset();
[197] Fix | Delete
this._refreshOffsets( event );
[198] Fix | Delete
[199] Fix | Delete
//Generate the original position
[200] Fix | Delete
this.originalPosition = this.position = this._generatePosition( event, false );
[201] Fix | Delete
this.originalPageX = event.pageX;
[202] Fix | Delete
this.originalPageY = event.pageY;
[203] Fix | Delete
[204] Fix | Delete
//Adjust the mouse offset relative to the helper if "cursorAt" is supplied
[205] Fix | Delete
if ( o.cursorAt ) {
[206] Fix | Delete
this._adjustOffsetFromHelper( o.cursorAt );
[207] Fix | Delete
}
[208] Fix | Delete
[209] Fix | Delete
//Set a containment if given in the options
[210] Fix | Delete
this._setContainment();
[211] Fix | Delete
[212] Fix | Delete
//Trigger event + callbacks
[213] Fix | Delete
if ( this._trigger( "start", event ) === false ) {
[214] Fix | Delete
this._clear();
[215] Fix | Delete
return false;
[216] Fix | Delete
}
[217] Fix | Delete
[218] Fix | Delete
//Recache the helper size
[219] Fix | Delete
this._cacheHelperProportions();
[220] Fix | Delete
[221] Fix | Delete
//Prepare the droppable offsets
[222] Fix | Delete
if ( $.ui.ddmanager && !o.dropBehaviour ) {
[223] Fix | Delete
$.ui.ddmanager.prepareOffsets( this, event );
[224] Fix | Delete
}
[225] Fix | Delete
[226] Fix | Delete
// Execute the drag once - this causes the helper not to be visible before getting its
[227] Fix | Delete
// correct position
[228] Fix | Delete
this._mouseDrag( event, true );
[229] Fix | Delete
[230] Fix | Delete
// If the ddmanager is used for droppables, inform the manager that dragging has started
[231] Fix | Delete
// (see #5003)
[232] Fix | Delete
if ( $.ui.ddmanager ) {
[233] Fix | Delete
$.ui.ddmanager.dragStart( this, event );
[234] Fix | Delete
}
[235] Fix | Delete
[236] Fix | Delete
return true;
[237] Fix | Delete
},
[238] Fix | Delete
[239] Fix | Delete
_refreshOffsets: function( event ) {
[240] Fix | Delete
this.offset = {
[241] Fix | Delete
top: this.positionAbs.top - this.margins.top,
[242] Fix | Delete
left: this.positionAbs.left - this.margins.left,
[243] Fix | Delete
scroll: false,
[244] Fix | Delete
parent: this._getParentOffset(),
[245] Fix | Delete
relative: this._getRelativeOffset()
[246] Fix | Delete
};
[247] Fix | Delete
[248] Fix | Delete
this.offset.click = {
[249] Fix | Delete
left: event.pageX - this.offset.left,
[250] Fix | Delete
top: event.pageY - this.offset.top
[251] Fix | Delete
};
[252] Fix | Delete
},
[253] Fix | Delete
[254] Fix | Delete
_mouseDrag: function( event, noPropagation ) {
[255] Fix | Delete
[256] Fix | Delete
// reset any necessary cached properties (see #5009)
[257] Fix | Delete
if ( this.hasFixedAncestor ) {
[258] Fix | Delete
this.offset.parent = this._getParentOffset();
[259] Fix | Delete
}
[260] Fix | Delete
[261] Fix | Delete
//Compute the helpers position
[262] Fix | Delete
this.position = this._generatePosition( event, true );
[263] Fix | Delete
this.positionAbs = this._convertPositionTo( "absolute" );
[264] Fix | Delete
[265] Fix | Delete
//Call plugins and callbacks and use the resulting position if something is returned
[266] Fix | Delete
if ( !noPropagation ) {
[267] Fix | Delete
var ui = this._uiHash();
[268] Fix | Delete
if ( this._trigger( "drag", event, ui ) === false ) {
[269] Fix | Delete
this._mouseUp( new $.Event( "mouseup", event ) );
[270] Fix | Delete
return false;
[271] Fix | Delete
}
[272] Fix | Delete
this.position = ui.position;
[273] Fix | Delete
}
[274] Fix | Delete
[275] Fix | Delete
this.helper[ 0 ].style.left = this.position.left + "px";
[276] Fix | Delete
this.helper[ 0 ].style.top = this.position.top + "px";
[277] Fix | Delete
[278] Fix | Delete
if ( $.ui.ddmanager ) {
[279] Fix | Delete
$.ui.ddmanager.drag( this, event );
[280] Fix | Delete
}
[281] Fix | Delete
[282] Fix | Delete
return false;
[283] Fix | Delete
},
[284] Fix | Delete
[285] Fix | Delete
_mouseStop: function( event ) {
[286] Fix | Delete
[287] Fix | Delete
//If we are using droppables, inform the manager about the drop
[288] Fix | Delete
var that = this,
[289] Fix | Delete
dropped = false;
[290] Fix | Delete
if ( $.ui.ddmanager && !this.options.dropBehaviour ) {
[291] Fix | Delete
dropped = $.ui.ddmanager.drop( this, event );
[292] Fix | Delete
}
[293] Fix | Delete
[294] Fix | Delete
//if a drop comes from outside (a sortable)
[295] Fix | Delete
if ( this.dropped ) {
[296] Fix | Delete
dropped = this.dropped;
[297] Fix | Delete
this.dropped = false;
[298] Fix | Delete
}
[299] Fix | Delete
[300] Fix | Delete
if ( ( this.options.revert === "invalid" && !dropped ) ||
[301] Fix | Delete
( this.options.revert === "valid" && dropped ) ||
[302] Fix | Delete
this.options.revert === true || ( typeof this.options.revert === "function" &&
[303] Fix | Delete
this.options.revert.call( this.element, dropped ) )
[304] Fix | Delete
) {
[305] Fix | Delete
$( this.helper ).animate(
[306] Fix | Delete
this.originalPosition,
[307] Fix | Delete
parseInt( this.options.revertDuration, 10 ),
[308] Fix | Delete
function() {
[309] Fix | Delete
if ( that._trigger( "stop", event ) !== false ) {
[310] Fix | Delete
that._clear();
[311] Fix | Delete
}
[312] Fix | Delete
}
[313] Fix | Delete
);
[314] Fix | Delete
} else {
[315] Fix | Delete
if ( this._trigger( "stop", event ) !== false ) {
[316] Fix | Delete
this._clear();
[317] Fix | Delete
}
[318] Fix | Delete
}
[319] Fix | Delete
[320] Fix | Delete
return false;
[321] Fix | Delete
},
[322] Fix | Delete
[323] Fix | Delete
_mouseUp: function( event ) {
[324] Fix | Delete
this._unblockFrames();
[325] Fix | Delete
[326] Fix | Delete
// If the ddmanager is used for droppables, inform the manager that dragging has stopped
[327] Fix | Delete
// (see #5003)
[328] Fix | Delete
if ( $.ui.ddmanager ) {
[329] Fix | Delete
$.ui.ddmanager.dragStop( this, event );
[330] Fix | Delete
}
[331] Fix | Delete
[332] Fix | Delete
// Only need to focus if the event occurred on the draggable itself, see #10527
[333] Fix | Delete
if ( this.handleElement.is( event.target ) ) {
[334] Fix | Delete
[335] Fix | Delete
// The interaction is over; whether or not the click resulted in a drag,
[336] Fix | Delete
// focus the element
[337] Fix | Delete
this.element.trigger( "focus" );
[338] Fix | Delete
}
[339] Fix | Delete
[340] Fix | Delete
return $.ui.mouse.prototype._mouseUp.call( this, event );
[341] Fix | Delete
},
[342] Fix | Delete
[343] Fix | Delete
cancel: function() {
[344] Fix | Delete
[345] Fix | Delete
if ( this.helper.is( ".ui-draggable-dragging" ) ) {
[346] Fix | Delete
this._mouseUp( new $.Event( "mouseup", { target: this.element[ 0 ] } ) );
[347] Fix | Delete
} else {
[348] Fix | Delete
this._clear();
[349] Fix | Delete
}
[350] Fix | Delete
[351] Fix | Delete
return this;
[352] Fix | Delete
[353] Fix | Delete
},
[354] Fix | Delete
[355] Fix | Delete
_getHandle: function( event ) {
[356] Fix | Delete
return this.options.handle ?
[357] Fix | Delete
!!$( event.target ).closest( this.element.find( this.options.handle ) ).length :
[358] Fix | Delete
true;
[359] Fix | Delete
},
[360] Fix | Delete
[361] Fix | Delete
_setHandleClassName: function() {
[362] Fix | Delete
this.handleElement = this.options.handle ?
[363] Fix | Delete
this.element.find( this.options.handle ) : this.element;
[364] Fix | Delete
this._addClass( this.handleElement, "ui-draggable-handle" );
[365] Fix | Delete
},
[366] Fix | Delete
[367] Fix | Delete
_removeHandleClassName: function() {
[368] Fix | Delete
this._removeClass( this.handleElement, "ui-draggable-handle" );
[369] Fix | Delete
},
[370] Fix | Delete
[371] Fix | Delete
_createHelper: function( event ) {
[372] Fix | Delete
[373] Fix | Delete
var o = this.options,
[374] Fix | Delete
helperIsFunction = typeof o.helper === "function",
[375] Fix | Delete
helper = helperIsFunction ?
[376] Fix | Delete
$( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
[377] Fix | Delete
( o.helper === "clone" ?
[378] Fix | Delete
this.element.clone().removeAttr( "id" ) :
[379] Fix | Delete
this.element );
[380] Fix | Delete
[381] Fix | Delete
if ( !helper.parents( "body" ).length ) {
[382] Fix | Delete
helper.appendTo( ( o.appendTo === "parent" ?
[383] Fix | Delete
this.element[ 0 ].parentNode :
[384] Fix | Delete
o.appendTo ) );
[385] Fix | Delete
}
[386] Fix | Delete
[387] Fix | Delete
// https://bugs.jqueryui.com/ticket/9446
[388] Fix | Delete
// a helper function can return the original element
[389] Fix | Delete
// which wouldn't have been set to relative in _create
[390] Fix | Delete
if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
[391] Fix | Delete
this._setPositionRelative();
[392] Fix | Delete
}
[393] Fix | Delete
[394] Fix | Delete
if ( helper[ 0 ] !== this.element[ 0 ] &&
[395] Fix | Delete
!( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) {
[396] Fix | Delete
helper.css( "position", "absolute" );
[397] Fix | Delete
}
[398] Fix | Delete
[399] Fix | Delete
return helper;
[400] Fix | Delete
[401] Fix | Delete
},
[402] Fix | Delete
[403] Fix | Delete
_setPositionRelative: function() {
[404] Fix | Delete
if ( !( /^(?:r|a|f)/ ).test( this.element.css( "position" ) ) ) {
[405] Fix | Delete
this.element[ 0 ].style.position = "relative";
[406] Fix | Delete
}
[407] Fix | Delete
},
[408] Fix | Delete
[409] Fix | Delete
_adjustOffsetFromHelper: function( obj ) {
[410] Fix | Delete
if ( typeof obj === "string" ) {
[411] Fix | Delete
obj = obj.split( " " );
[412] Fix | Delete
}
[413] Fix | Delete
if ( Array.isArray( obj ) ) {
[414] Fix | Delete
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
[415] Fix | Delete
}
[416] Fix | Delete
if ( "left" in obj ) {
[417] Fix | Delete
this.offset.click.left = obj.left + this.margins.left;
[418] Fix | Delete
}
[419] Fix | Delete
if ( "right" in obj ) {
[420] Fix | Delete
this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
[421] Fix | Delete
}
[422] Fix | Delete
if ( "top" in obj ) {
[423] Fix | Delete
this.offset.click.top = obj.top + this.margins.top;
[424] Fix | Delete
}
[425] Fix | Delete
if ( "bottom" in obj ) {
[426] Fix | Delete
this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
[427] Fix | Delete
}
[428] Fix | Delete
},
[429] Fix | Delete
[430] Fix | Delete
_isRootNode: function( element ) {
[431] Fix | Delete
return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ];
[432] Fix | Delete
},
[433] Fix | Delete
[434] Fix | Delete
_getParentOffset: function() {
[435] Fix | Delete
[436] Fix | Delete
//Get the offsetParent and cache its position
[437] Fix | Delete
var po = this.offsetParent.offset(),
[438] Fix | Delete
document = this.document[ 0 ];
[439] Fix | Delete
[440] Fix | Delete
// This is a special case where we need to modify a offset calculated on start, since the
[441] Fix | Delete
// following happened:
[442] Fix | Delete
// 1. The position of the helper is absolute, so it's position is calculated based on the
[443] Fix | Delete
// next positioned parent
[444] Fix | Delete
// 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't
[445] Fix | Delete
// the document, which means that the scroll is included in the initial calculation of the
[446] Fix | Delete
// offset of the parent, and never recalculated upon drag
[447] Fix | Delete
if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document &&
[448] Fix | Delete
$.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
[449] Fix | Delete
po.left += this.scrollParent.scrollLeft();
[450] Fix | Delete
po.top += this.scrollParent.scrollTop();
[451] Fix | Delete
}
[452] Fix | Delete
[453] Fix | Delete
if ( this._isRootNode( this.offsetParent[ 0 ] ) ) {
[454] Fix | Delete
po = { top: 0, left: 0 };
[455] Fix | Delete
}
[456] Fix | Delete
[457] Fix | Delete
return {
[458] Fix | Delete
top: po.top + ( parseInt( this.offsetParent.css( "borderTopWidth" ), 10 ) || 0 ),
[459] Fix | Delete
left: po.left + ( parseInt( this.offsetParent.css( "borderLeftWidth" ), 10 ) || 0 )
[460] Fix | Delete
};
[461] Fix | Delete
[462] Fix | Delete
},
[463] Fix | Delete
[464] Fix | Delete
_getRelativeOffset: function() {
[465] Fix | Delete
if ( this.cssPosition !== "relative" ) {
[466] Fix | Delete
return { top: 0, left: 0 };
[467] Fix | Delete
}
[468] Fix | Delete
[469] Fix | Delete
var p = this.element.position(),
[470] Fix | Delete
scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
[471] Fix | Delete
[472] Fix | Delete
return {
[473] Fix | Delete
top: p.top - ( parseInt( this.helper.css( "top" ), 10 ) || 0 ) +
[474] Fix | Delete
( !scrollIsRootNode ? this.scrollParent.scrollTop() : 0 ),
[475] Fix | Delete
left: p.left - ( parseInt( this.helper.css( "left" ), 10 ) || 0 ) +
[476] Fix | Delete
( !scrollIsRootNode ? this.scrollParent.scrollLeft() : 0 )
[477] Fix | Delete
};
[478] Fix | Delete
[479] Fix | Delete
},
[480] Fix | Delete
[481] Fix | Delete
_cacheMargins: function() {
[482] Fix | Delete
this.margins = {
[483] Fix | Delete
left: ( parseInt( this.element.css( "marginLeft" ), 10 ) || 0 ),
[484] Fix | Delete
top: ( parseInt( this.element.css( "marginTop" ), 10 ) || 0 ),
[485] Fix | Delete
right: ( parseInt( this.element.css( "marginRight" ), 10 ) || 0 ),
[486] Fix | Delete
bottom: ( parseInt( this.element.css( "marginBottom" ), 10 ) || 0 )
[487] Fix | Delete
};
[488] Fix | Delete
},
[489] Fix | Delete
[490] Fix | Delete
_cacheHelperProportions: function() {
[491] Fix | Delete
this.helperProportions = {
[492] Fix | Delete
width: this.helper.outerWidth(),
[493] Fix | Delete
height: this.helper.outerHeight()
[494] Fix | Delete
};
[495] Fix | Delete
},
[496] Fix | Delete
[497] Fix | Delete
_setContainment: function() {
[498] Fix | Delete
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function