Skip to content

Commit

Permalink
gallery-2010.04.02-17-26 mattparker gallery-resize
Browse files Browse the repository at this point in the history
  • Loading branch information
YUI Builder committed Apr 2, 2010
1 parent 90ab595 commit 8a1409b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/gallery-resize/js/plugin-resize.js
Expand Up @@ -649,6 +649,12 @@
finalCoords ;


if( this._resizeNode.getStyle("position") !== "absolute" ){
orig.t = 0; t=0;
orig.l = 0; l=0;
}


if( this.get( "xTicks" ) && this.get( "xTicks" ) > 0 ){
calcdW = this._snapTick( dw , this.get( "xTicks" ) );

Expand Down Expand Up @@ -722,11 +728,17 @@
l = orig.l; calcdL = 0;
}




finalCoords = this._constrainResize( { w: w + calcdW,
h: h + calcdH,
t: t + calcdT,
l: l + calcdL } );




this._setPosition( finalCoords , this._resizeNode );

this._updateStatus( ev, { w: w + calcdW, h: h + calcdH, dw: dw, dh: dh } );
Expand Down Expand Up @@ -1133,3 +1145,4 @@




0 comments on commit 8a1409b

Please sign in to comment.