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