Open GoogleCodeExporter opened 8 years ago
Original comment by aeron.gl...@gmail.com
on 7 May 2010 at 11:14
Original comment by aeron.gl...@gmail.com
on 7 May 2010 at 11:14
I made another _resize type and added it the _resize function to deal with
portrait sized photos.
if (this.options.resize == 'custom') {
if( w > h ) {
var percent = this.width / w;
}
else {
var percent = this.height / h;
}
}
img.set('styles', {'height': Math.ceil(h * percent), 'width': Math.ceil(w *
percent)});
Original comment by ben...@gmail.com
on 18 May 2011 at 6:15
Original issue reported on code.google.com by
Andrew.M...@gmail.com
on 4 Dec 2009 at 8:10