X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ux%2FLightbox.js;h=1091755dfb5fcba916cee82a076bcdeb14737d7a;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=4ee683d573f0a3c65c9adb8f24dc07351bce858a;hpb=53db108ab217828bc6908cbf4cc2ac84e63ba433;p=roojs1 diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 4ee683d573..1091755dfb 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -460,7 +460,7 @@ Roo.apply(Roo.ux.Lightbox.prototype, // resizeImageContainer() // resizeImageContainer: function(imgWidth, imgHeight) { - Roo.log(imgWidth); + // make sure we have some sensible sizes.. imgWidth = Math.max(50, imgWidth); imgHeight = Math.max(50, imgHeight); @@ -476,6 +476,7 @@ Roo.apply(Roo.ux.Lightbox.prototype, ww -= 150; wh -= 150; + // get new width and height var bs = this.borderSize * 2;