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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: resizable.js
[500] Fix | Delete
$( "body" ).css( "cursor", "auto" );
[501] Fix | Delete
[502] Fix | Delete
this._removeClass( "ui-resizable-resizing" );
[503] Fix | Delete
[504] Fix | Delete
this._propagate( "stop", event );
[505] Fix | Delete
[506] Fix | Delete
if ( this._helper ) {
[507] Fix | Delete
this.helper.remove();
[508] Fix | Delete
}
[509] Fix | Delete
[510] Fix | Delete
return false;
[511] Fix | Delete
[512] Fix | Delete
},
[513] Fix | Delete
[514] Fix | Delete
_updatePrevProperties: function() {
[515] Fix | Delete
this.prevPosition = {
[516] Fix | Delete
top: this.position.top,
[517] Fix | Delete
left: this.position.left
[518] Fix | Delete
};
[519] Fix | Delete
this.prevSize = {
[520] Fix | Delete
width: this.size.width,
[521] Fix | Delete
height: this.size.height
[522] Fix | Delete
};
[523] Fix | Delete
},
[524] Fix | Delete
[525] Fix | Delete
_applyChanges: function() {
[526] Fix | Delete
var props = {};
[527] Fix | Delete
[528] Fix | Delete
if ( this.position.top !== this.prevPosition.top ) {
[529] Fix | Delete
props.top = this.position.top + "px";
[530] Fix | Delete
}
[531] Fix | Delete
if ( this.position.left !== this.prevPosition.left ) {
[532] Fix | Delete
props.left = this.position.left + "px";
[533] Fix | Delete
}
[534] Fix | Delete
[535] Fix | Delete
this.helper.css( props );
[536] Fix | Delete
[537] Fix | Delete
if ( this.size.width !== this.prevSize.width ) {
[538] Fix | Delete
props.width = this.size.width + "px";
[539] Fix | Delete
this.helper.width( props.width );
[540] Fix | Delete
}
[541] Fix | Delete
if ( this.size.height !== this.prevSize.height ) {
[542] Fix | Delete
props.height = this.size.height + "px";
[543] Fix | Delete
this.helper.height( props.height );
[544] Fix | Delete
}
[545] Fix | Delete
[546] Fix | Delete
return props;
[547] Fix | Delete
},
[548] Fix | Delete
[549] Fix | Delete
_updateVirtualBoundaries: function( forceAspectRatio ) {
[550] Fix | Delete
var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
[551] Fix | Delete
o = this.options;
[552] Fix | Delete
[553] Fix | Delete
b = {
[554] Fix | Delete
minWidth: this._isNumber( o.minWidth ) ? o.minWidth : 0,
[555] Fix | Delete
maxWidth: this._isNumber( o.maxWidth ) ? o.maxWidth : Infinity,
[556] Fix | Delete
minHeight: this._isNumber( o.minHeight ) ? o.minHeight : 0,
[557] Fix | Delete
maxHeight: this._isNumber( o.maxHeight ) ? o.maxHeight : Infinity
[558] Fix | Delete
};
[559] Fix | Delete
[560] Fix | Delete
if ( this._aspectRatio || forceAspectRatio ) {
[561] Fix | Delete
pMinWidth = b.minHeight * this.aspectRatio;
[562] Fix | Delete
pMinHeight = b.minWidth / this.aspectRatio;
[563] Fix | Delete
pMaxWidth = b.maxHeight * this.aspectRatio;
[564] Fix | Delete
pMaxHeight = b.maxWidth / this.aspectRatio;
[565] Fix | Delete
[566] Fix | Delete
if ( pMinWidth > b.minWidth ) {
[567] Fix | Delete
b.minWidth = pMinWidth;
[568] Fix | Delete
}
[569] Fix | Delete
if ( pMinHeight > b.minHeight ) {
[570] Fix | Delete
b.minHeight = pMinHeight;
[571] Fix | Delete
}
[572] Fix | Delete
if ( pMaxWidth < b.maxWidth ) {
[573] Fix | Delete
b.maxWidth = pMaxWidth;
[574] Fix | Delete
}
[575] Fix | Delete
if ( pMaxHeight < b.maxHeight ) {
[576] Fix | Delete
b.maxHeight = pMaxHeight;
[577] Fix | Delete
}
[578] Fix | Delete
}
[579] Fix | Delete
this._vBoundaries = b;
[580] Fix | Delete
},
[581] Fix | Delete
[582] Fix | Delete
_updateCache: function( data ) {
[583] Fix | Delete
this.offset = this.helper.offset();
[584] Fix | Delete
if ( this._isNumber( data.left ) ) {
[585] Fix | Delete
this.position.left = data.left;
[586] Fix | Delete
}
[587] Fix | Delete
if ( this._isNumber( data.top ) ) {
[588] Fix | Delete
this.position.top = data.top;
[589] Fix | Delete
}
[590] Fix | Delete
if ( this._isNumber( data.height ) ) {
[591] Fix | Delete
this.size.height = data.height;
[592] Fix | Delete
}
[593] Fix | Delete
if ( this._isNumber( data.width ) ) {
[594] Fix | Delete
this.size.width = data.width;
[595] Fix | Delete
}
[596] Fix | Delete
},
[597] Fix | Delete
[598] Fix | Delete
_updateRatio: function( data ) {
[599] Fix | Delete
[600] Fix | Delete
var cpos = this.position,
[601] Fix | Delete
csize = this.size,
[602] Fix | Delete
a = this.axis;
[603] Fix | Delete
[604] Fix | Delete
if ( this._isNumber( data.height ) ) {
[605] Fix | Delete
data.width = ( data.height * this.aspectRatio );
[606] Fix | Delete
} else if ( this._isNumber( data.width ) ) {
[607] Fix | Delete
data.height = ( data.width / this.aspectRatio );
[608] Fix | Delete
}
[609] Fix | Delete
[610] Fix | Delete
if ( a === "sw" ) {
[611] Fix | Delete
data.left = cpos.left + ( csize.width - data.width );
[612] Fix | Delete
data.top = null;
[613] Fix | Delete
}
[614] Fix | Delete
if ( a === "nw" ) {
[615] Fix | Delete
data.top = cpos.top + ( csize.height - data.height );
[616] Fix | Delete
data.left = cpos.left + ( csize.width - data.width );
[617] Fix | Delete
}
[618] Fix | Delete
[619] Fix | Delete
return data;
[620] Fix | Delete
},
[621] Fix | Delete
[622] Fix | Delete
_respectSize: function( data ) {
[623] Fix | Delete
[624] Fix | Delete
var o = this._vBoundaries,
[625] Fix | Delete
a = this.axis,
[626] Fix | Delete
ismaxw = this._isNumber( data.width ) && o.maxWidth && ( o.maxWidth < data.width ),
[627] Fix | Delete
ismaxh = this._isNumber( data.height ) && o.maxHeight && ( o.maxHeight < data.height ),
[628] Fix | Delete
isminw = this._isNumber( data.width ) && o.minWidth && ( o.minWidth > data.width ),
[629] Fix | Delete
isminh = this._isNumber( data.height ) && o.minHeight && ( o.minHeight > data.height ),
[630] Fix | Delete
dw = this.originalPosition.left + this.originalSize.width,
[631] Fix | Delete
dh = this.originalPosition.top + this.originalSize.height,
[632] Fix | Delete
cw = /sw|nw|w/.test( a ), ch = /nw|ne|n/.test( a );
[633] Fix | Delete
if ( isminw ) {
[634] Fix | Delete
data.width = o.minWidth;
[635] Fix | Delete
}
[636] Fix | Delete
if ( isminh ) {
[637] Fix | Delete
data.height = o.minHeight;
[638] Fix | Delete
}
[639] Fix | Delete
if ( ismaxw ) {
[640] Fix | Delete
data.width = o.maxWidth;
[641] Fix | Delete
}
[642] Fix | Delete
if ( ismaxh ) {
[643] Fix | Delete
data.height = o.maxHeight;
[644] Fix | Delete
}
[645] Fix | Delete
[646] Fix | Delete
if ( isminw && cw ) {
[647] Fix | Delete
data.left = dw - o.minWidth;
[648] Fix | Delete
}
[649] Fix | Delete
if ( ismaxw && cw ) {
[650] Fix | Delete
data.left = dw - o.maxWidth;
[651] Fix | Delete
}
[652] Fix | Delete
if ( isminh && ch ) {
[653] Fix | Delete
data.top = dh - o.minHeight;
[654] Fix | Delete
}
[655] Fix | Delete
if ( ismaxh && ch ) {
[656] Fix | Delete
data.top = dh - o.maxHeight;
[657] Fix | Delete
}
[658] Fix | Delete
[659] Fix | Delete
// Fixing jump error on top/left - bug #2330
[660] Fix | Delete
if ( !data.width && !data.height && !data.left && data.top ) {
[661] Fix | Delete
data.top = null;
[662] Fix | Delete
} else if ( !data.width && !data.height && !data.top && data.left ) {
[663] Fix | Delete
data.left = null;
[664] Fix | Delete
}
[665] Fix | Delete
[666] Fix | Delete
return data;
[667] Fix | Delete
},
[668] Fix | Delete
[669] Fix | Delete
_getPaddingPlusBorderDimensions: function( element ) {
[670] Fix | Delete
var i = 0,
[671] Fix | Delete
widths = [],
[672] Fix | Delete
borders = [
[673] Fix | Delete
element.css( "borderTopWidth" ),
[674] Fix | Delete
element.css( "borderRightWidth" ),
[675] Fix | Delete
element.css( "borderBottomWidth" ),
[676] Fix | Delete
element.css( "borderLeftWidth" )
[677] Fix | Delete
],
[678] Fix | Delete
paddings = [
[679] Fix | Delete
element.css( "paddingTop" ),
[680] Fix | Delete
element.css( "paddingRight" ),
[681] Fix | Delete
element.css( "paddingBottom" ),
[682] Fix | Delete
element.css( "paddingLeft" )
[683] Fix | Delete
];
[684] Fix | Delete
[685] Fix | Delete
for ( ; i < 4; i++ ) {
[686] Fix | Delete
widths[ i ] = ( parseFloat( borders[ i ] ) || 0 );
[687] Fix | Delete
widths[ i ] += ( parseFloat( paddings[ i ] ) || 0 );
[688] Fix | Delete
}
[689] Fix | Delete
[690] Fix | Delete
return {
[691] Fix | Delete
height: widths[ 0 ] + widths[ 2 ],
[692] Fix | Delete
width: widths[ 1 ] + widths[ 3 ]
[693] Fix | Delete
};
[694] Fix | Delete
},
[695] Fix | Delete
[696] Fix | Delete
_proportionallyResize: function() {
[697] Fix | Delete
[698] Fix | Delete
if ( !this._proportionallyResizeElements.length ) {
[699] Fix | Delete
return;
[700] Fix | Delete
}
[701] Fix | Delete
[702] Fix | Delete
var prel,
[703] Fix | Delete
i = 0,
[704] Fix | Delete
element = this.helper || this.element;
[705] Fix | Delete
[706] Fix | Delete
for ( ; i < this._proportionallyResizeElements.length; i++ ) {
[707] Fix | Delete
[708] Fix | Delete
prel = this._proportionallyResizeElements[ i ];
[709] Fix | Delete
[710] Fix | Delete
// TODO: Seems like a bug to cache this.outerDimensions
[711] Fix | Delete
// considering that we are in a loop.
[712] Fix | Delete
if ( !this.outerDimensions ) {
[713] Fix | Delete
this.outerDimensions = this._getPaddingPlusBorderDimensions( prel );
[714] Fix | Delete
}
[715] Fix | Delete
[716] Fix | Delete
prel.css( {
[717] Fix | Delete
height: ( element.height() - this.outerDimensions.height ) || 0,
[718] Fix | Delete
width: ( element.width() - this.outerDimensions.width ) || 0
[719] Fix | Delete
} );
[720] Fix | Delete
[721] Fix | Delete
}
[722] Fix | Delete
[723] Fix | Delete
},
[724] Fix | Delete
[725] Fix | Delete
_renderProxy: function() {
[726] Fix | Delete
[727] Fix | Delete
var el = this.element, o = this.options;
[728] Fix | Delete
this.elementOffset = el.offset();
[729] Fix | Delete
[730] Fix | Delete
if ( this._helper ) {
[731] Fix | Delete
[732] Fix | Delete
this.helper = this.helper || $( "<div></div>" ).css( { overflow: "hidden" } );
[733] Fix | Delete
[734] Fix | Delete
this._addClass( this.helper, this._helper );
[735] Fix | Delete
this.helper.css( {
[736] Fix | Delete
width: this.element.outerWidth(),
[737] Fix | Delete
height: this.element.outerHeight(),
[738] Fix | Delete
position: "absolute",
[739] Fix | Delete
left: this.elementOffset.left + "px",
[740] Fix | Delete
top: this.elementOffset.top + "px",
[741] Fix | Delete
zIndex: ++o.zIndex //TODO: Don't modify option
[742] Fix | Delete
} );
[743] Fix | Delete
[744] Fix | Delete
this.helper
[745] Fix | Delete
.appendTo( "body" )
[746] Fix | Delete
.disableSelection();
[747] Fix | Delete
[748] Fix | Delete
} else {
[749] Fix | Delete
this.helper = this.element;
[750] Fix | Delete
}
[751] Fix | Delete
[752] Fix | Delete
},
[753] Fix | Delete
[754] Fix | Delete
_change: {
[755] Fix | Delete
e: function( event, dx ) {
[756] Fix | Delete
return { width: this.originalSize.width + dx };
[757] Fix | Delete
},
[758] Fix | Delete
w: function( event, dx ) {
[759] Fix | Delete
var cs = this.originalSize, sp = this.originalPosition;
[760] Fix | Delete
return { left: sp.left + dx, width: cs.width - dx };
[761] Fix | Delete
},
[762] Fix | Delete
n: function( event, dx, dy ) {
[763] Fix | Delete
var cs = this.originalSize, sp = this.originalPosition;
[764] Fix | Delete
return { top: sp.top + dy, height: cs.height - dy };
[765] Fix | Delete
},
[766] Fix | Delete
s: function( event, dx, dy ) {
[767] Fix | Delete
return { height: this.originalSize.height + dy };
[768] Fix | Delete
},
[769] Fix | Delete
se: function( event, dx, dy ) {
[770] Fix | Delete
return $.extend( this._change.s.apply( this, arguments ),
[771] Fix | Delete
this._change.e.apply( this, [ event, dx, dy ] ) );
[772] Fix | Delete
},
[773] Fix | Delete
sw: function( event, dx, dy ) {
[774] Fix | Delete
return $.extend( this._change.s.apply( this, arguments ),
[775] Fix | Delete
this._change.w.apply( this, [ event, dx, dy ] ) );
[776] Fix | Delete
},
[777] Fix | Delete
ne: function( event, dx, dy ) {
[778] Fix | Delete
return $.extend( this._change.n.apply( this, arguments ),
[779] Fix | Delete
this._change.e.apply( this, [ event, dx, dy ] ) );
[780] Fix | Delete
},
[781] Fix | Delete
nw: function( event, dx, dy ) {
[782] Fix | Delete
return $.extend( this._change.n.apply( this, arguments ),
[783] Fix | Delete
this._change.w.apply( this, [ event, dx, dy ] ) );
[784] Fix | Delete
}
[785] Fix | Delete
},
[786] Fix | Delete
[787] Fix | Delete
_propagate: function( n, event ) {
[788] Fix | Delete
$.ui.plugin.call( this, n, [ event, this.ui() ] );
[789] Fix | Delete
if ( n !== "resize" ) {
[790] Fix | Delete
this._trigger( n, event, this.ui() );
[791] Fix | Delete
}
[792] Fix | Delete
},
[793] Fix | Delete
[794] Fix | Delete
plugins: {},
[795] Fix | Delete
[796] Fix | Delete
ui: function() {
[797] Fix | Delete
return {
[798] Fix | Delete
originalElement: this.originalElement,
[799] Fix | Delete
element: this.element,
[800] Fix | Delete
helper: this.helper,
[801] Fix | Delete
position: this.position,
[802] Fix | Delete
size: this.size,
[803] Fix | Delete
originalSize: this.originalSize,
[804] Fix | Delete
originalPosition: this.originalPosition
[805] Fix | Delete
};
[806] Fix | Delete
}
[807] Fix | Delete
[808] Fix | Delete
} );
[809] Fix | Delete
[810] Fix | Delete
/*
[811] Fix | Delete
* Resizable Extensions
[812] Fix | Delete
*/
[813] Fix | Delete
[814] Fix | Delete
$.ui.plugin.add( "resizable", "animate", {
[815] Fix | Delete
[816] Fix | Delete
stop: function( event ) {
[817] Fix | Delete
var that = $( this ).resizable( "instance" ),
[818] Fix | Delete
o = that.options,
[819] Fix | Delete
pr = that._proportionallyResizeElements,
[820] Fix | Delete
ista = pr.length && ( /textarea/i ).test( pr[ 0 ].nodeName ),
[821] Fix | Delete
soffseth = ista && that._hasScroll( pr[ 0 ], "left" ) ? 0 : that.sizeDiff.height,
[822] Fix | Delete
soffsetw = ista ? 0 : that.sizeDiff.width,
[823] Fix | Delete
style = {
[824] Fix | Delete
width: ( that.size.width - soffsetw ),
[825] Fix | Delete
height: ( that.size.height - soffseth )
[826] Fix | Delete
},
[827] Fix | Delete
left = ( parseFloat( that.element.css( "left" ) ) +
[828] Fix | Delete
( that.position.left - that.originalPosition.left ) ) || null,
[829] Fix | Delete
top = ( parseFloat( that.element.css( "top" ) ) +
[830] Fix | Delete
( that.position.top - that.originalPosition.top ) ) || null;
[831] Fix | Delete
[832] Fix | Delete
that.element.animate(
[833] Fix | Delete
$.extend( style, top && left ? { top: top, left: left } : {} ), {
[834] Fix | Delete
duration: o.animateDuration,
[835] Fix | Delete
easing: o.animateEasing,
[836] Fix | Delete
step: function() {
[837] Fix | Delete
[838] Fix | Delete
var data = {
[839] Fix | Delete
width: parseFloat( that.element.css( "width" ) ),
[840] Fix | Delete
height: parseFloat( that.element.css( "height" ) ),
[841] Fix | Delete
top: parseFloat( that.element.css( "top" ) ),
[842] Fix | Delete
left: parseFloat( that.element.css( "left" ) )
[843] Fix | Delete
};
[844] Fix | Delete
[845] Fix | Delete
if ( pr && pr.length ) {
[846] Fix | Delete
$( pr[ 0 ] ).css( { width: data.width, height: data.height } );
[847] Fix | Delete
}
[848] Fix | Delete
[849] Fix | Delete
// Propagating resize, and updating values for each animation step
[850] Fix | Delete
that._updateCache( data );
[851] Fix | Delete
that._propagate( "resize", event );
[852] Fix | Delete
[853] Fix | Delete
}
[854] Fix | Delete
}
[855] Fix | Delete
);
[856] Fix | Delete
}
[857] Fix | Delete
[858] Fix | Delete
} );
[859] Fix | Delete
[860] Fix | Delete
$.ui.plugin.add( "resizable", "containment", {
[861] Fix | Delete
[862] Fix | Delete
start: function() {
[863] Fix | Delete
var element, p, co, ch, cw, width, height,
[864] Fix | Delete
that = $( this ).resizable( "instance" ),
[865] Fix | Delete
o = that.options,
[866] Fix | Delete
el = that.element,
[867] Fix | Delete
oc = o.containment,
[868] Fix | Delete
ce = ( oc instanceof $ ) ?
[869] Fix | Delete
oc.get( 0 ) :
[870] Fix | Delete
( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
[871] Fix | Delete
[872] Fix | Delete
if ( !ce ) {
[873] Fix | Delete
return;
[874] Fix | Delete
}
[875] Fix | Delete
[876] Fix | Delete
that.containerElement = $( ce );
[877] Fix | Delete
[878] Fix | Delete
if ( /document/.test( oc ) || oc === document ) {
[879] Fix | Delete
that.containerOffset = {
[880] Fix | Delete
left: 0,
[881] Fix | Delete
top: 0
[882] Fix | Delete
};
[883] Fix | Delete
that.containerPosition = {
[884] Fix | Delete
left: 0,
[885] Fix | Delete
top: 0
[886] Fix | Delete
};
[887] Fix | Delete
[888] Fix | Delete
that.parentData = {
[889] Fix | Delete
element: $( document ),
[890] Fix | Delete
left: 0,
[891] Fix | Delete
top: 0,
[892] Fix | Delete
width: $( document ).width(),
[893] Fix | Delete
height: $( document ).height() || document.body.parentNode.scrollHeight
[894] Fix | Delete
};
[895] Fix | Delete
} else {
[896] Fix | Delete
element = $( ce );
[897] Fix | Delete
p = [];
[898] Fix | Delete
$( [ "Top", "Right", "Left", "Bottom" ] ).each( function( i, name ) {
[899] Fix | Delete
p[ i ] = that._num( element.css( "padding" + name ) );
[900] Fix | Delete
} );
[901] Fix | Delete
[902] Fix | Delete
that.containerOffset = element.offset();
[903] Fix | Delete
that.containerPosition = element.position();
[904] Fix | Delete
that.containerSize = {
[905] Fix | Delete
height: ( element.innerHeight() - p[ 3 ] ),
[906] Fix | Delete
width: ( element.innerWidth() - p[ 1 ] )
[907] Fix | Delete
};
[908] Fix | Delete
[909] Fix | Delete
co = that.containerOffset;
[910] Fix | Delete
ch = that.containerSize.height;
[911] Fix | Delete
cw = that.containerSize.width;
[912] Fix | Delete
width = ( that._hasScroll( ce, "left" ) ? ce.scrollWidth : cw );
[913] Fix | Delete
height = ( that._hasScroll( ce ) ? ce.scrollHeight : ch );
[914] Fix | Delete
[915] Fix | Delete
that.parentData = {
[916] Fix | Delete
element: ce,
[917] Fix | Delete
left: co.left,
[918] Fix | Delete
top: co.top,
[919] Fix | Delete
width: width,
[920] Fix | Delete
height: height
[921] Fix | Delete
};
[922] Fix | Delete
}
[923] Fix | Delete
},
[924] Fix | Delete
[925] Fix | Delete
resize: function( event ) {
[926] Fix | Delete
var woset, hoset, isParent, isOffsetRelative,
[927] Fix | Delete
that = $( this ).resizable( "instance" ),
[928] Fix | Delete
o = that.options,
[929] Fix | Delete
co = that.containerOffset,
[930] Fix | Delete
cp = that.position,
[931] Fix | Delete
pRatio = that._aspectRatio || event.shiftKey,
[932] Fix | Delete
cop = {
[933] Fix | Delete
top: 0,
[934] Fix | Delete
left: 0
[935] Fix | Delete
},
[936] Fix | Delete
ce = that.containerElement,
[937] Fix | Delete
continueResize = true;
[938] Fix | Delete
[939] Fix | Delete
if ( ce[ 0 ] !== document && ( /static/ ).test( ce.css( "position" ) ) ) {
[940] Fix | Delete
cop = co;
[941] Fix | Delete
}
[942] Fix | Delete
[943] Fix | Delete
if ( cp.left < ( that._helper ? co.left : 0 ) ) {
[944] Fix | Delete
that.size.width = that.size.width +
[945] Fix | Delete
( that._helper ?
[946] Fix | Delete
( that.position.left - co.left ) :
[947] Fix | Delete
( that.position.left - cop.left ) );
[948] Fix | Delete
[949] Fix | Delete
if ( pRatio ) {
[950] Fix | Delete
that.size.height = that.size.width / that.aspectRatio;
[951] Fix | Delete
continueResize = false;
[952] Fix | Delete
}
[953] Fix | Delete
that.position.left = o.helper ? co.left : 0;
[954] Fix | Delete
}
[955] Fix | Delete
[956] Fix | Delete
if ( cp.top < ( that._helper ? co.top : 0 ) ) {
[957] Fix | Delete
that.size.height = that.size.height +
[958] Fix | Delete
( that._helper ?
[959] Fix | Delete
( that.position.top - co.top ) :
[960] Fix | Delete
that.position.top );
[961] Fix | Delete
[962] Fix | Delete
if ( pRatio ) {
[963] Fix | Delete
that.size.width = that.size.height * that.aspectRatio;
[964] Fix | Delete
continueResize = false;
[965] Fix | Delete
}
[966] Fix | Delete
that.position.top = that._helper ? co.top : 0;
[967] Fix | Delete
}
[968] Fix | Delete
[969] Fix | Delete
isParent = that.containerElement.get( 0 ) === that.element.parent().get( 0 );
[970] Fix | Delete
isOffsetRelative = /relative|absolute/.test( that.containerElement.css( "position" ) );
[971] Fix | Delete
[972] Fix | Delete
if ( isParent && isOffsetRelative ) {
[973] Fix | Delete
that.offset.left = that.parentData.left + that.position.left;
[974] Fix | Delete
that.offset.top = that.parentData.top + that.position.top;
[975] Fix | Delete
} else {
[976] Fix | Delete
that.offset.left = that.element.offset().left;
[977] Fix | Delete
that.offset.top = that.element.offset().top;
[978] Fix | Delete
}
[979] Fix | Delete
[980] Fix | Delete
woset = Math.abs( that.sizeDiff.width +
[981] Fix | Delete
( that._helper ?
[982] Fix | Delete
that.offset.left - cop.left :
[983] Fix | Delete
( that.offset.left - co.left ) ) );
[984] Fix | Delete
[985] Fix | Delete
hoset = Math.abs( that.sizeDiff.height +
[986] Fix | Delete
( that._helper ?
[987] Fix | Delete
that.offset.top - cop.top :
[988] Fix | Delete
( that.offset.top - co.top ) ) );
[989] Fix | Delete
[990] Fix | Delete
if ( woset + that.size.width >= that.parentData.width ) {
[991] Fix | Delete
that.size.width = that.parentData.width - woset;
[992] Fix | Delete
if ( pRatio ) {
[993] Fix | Delete
that.size.height = that.size.width / that.aspectRatio;
[994] Fix | Delete
continueResize = false;
[995] Fix | Delete
}
[996] Fix | Delete
}
[997] Fix | Delete
[998] Fix | Delete
if ( hoset + that.size.height >= that.parentData.height ) {
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function