X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ux%2FLightbox.js;h=1091755dfb5fcba916cee82a076bcdeb14737d7a;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=ce12fbad026a0a8cba0cb015359c15b91755f827;hpb=236e9e26dc1ef37cdeb8cf19405ad90de952a048;p=roojs1 diff --git a/ux/Lightbox.js b/ux/Lightbox.js index ce12fbad02..1091755dfb 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -482,7 +482,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..