Merge "Fix image bucketing resize engine"

This commit is contained in:
jenkins-bot 2014-01-06 22:27:40 +00:00 committed by Gerrit Code Review
commit e0e768f4cd

View file

@ -345,7 +345,9 @@
innerInfo = imageInfo.imageinfo[0];
image.onload = function () {
image.width = targetWidth;
if ( image.width > targetWidth ) {
image.width = targetWidth;
}
viewer.profileEnd( rpid );
ui.replaceImageWith( image );
this.updateControls();
@ -692,7 +694,10 @@
viewer.profileEnd( mdpid );
imageEle.onload = function () {
imageEle.width = targetWidth;
if ( imageEle.width > targetWidth ) {
imageEle.width = targetWidth;
}
viewer.profileEnd( pid );
viewer.lightbox.iface.replaceImageWith( imageEle );