From: Edward Date: Thu, 13 Mar 2014 10:39:39 +0000 (+0800) Subject: ux/Lightbox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=6cba07f9ddfa176bbcd882df84040ea57072e016 ux/Lightbox.js --- diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 6effc3ba8d..1091755dfb 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -482,8 +482,7 @@ Roo.apply(Roo.ux.Lightbox.prototype, var widthNew = imgWidth + bs; var heightNew = imgHeight + bs; - Roo.log(heightNew); - Roo.log(wh); + if (widthNew > ww || heightNew > wh) { // bigger than window. // scale here... - bit nasty..