X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ux%2FLightbox.js;h=1091755dfb5fcba916cee82a076bcdeb14737d7a;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=b2c8e8b7e8aad30449a3674c22ccc94310defea1;hpb=bbe45c2eb568f2bb08fb9b27e2e4596017caf9a7;p=roojs1 diff --git a/ux/Lightbox.js b/ux/Lightbox.js index b2c8e8b7e8..1091755dfb 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -443,11 +443,6 @@ Roo.apply(Roo.ux.Lightbox.prototype, // once image is preloaded, resize image container imgPreloader.on('load', function() { - Roo.log('this.imageArray[this.activeImage].dom.lwidth'); - Roo.log(this.imageArray[this.activeImage].dom.lwidth); - - Roo.log('this.imageArray[this.activeImage].dom.lheight'); - Roo.log(this.imageArray[this.activeImage].dom.lheight); this.lightboximage.dom.src = this.imageArray[this.activeImage].href || this.imageArray[this.activeImage].dom.href || this.imageArray[this.activeImage].dom.src; @@ -478,8 +473,7 @@ Roo.apply(Roo.ux.Lightbox.prototype, var w = window; var ww = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth); var wh = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight); - Roo.log(ww); - Roo.log(wh); + ww -= 150; wh -= 150; @@ -493,7 +487,6 @@ Roo.apply(Roo.ux.Lightbox.prototype, // bigger than window. // scale here... - bit nasty.. var rescale = 1.1 * Math.max( widthNew / ww , heightNew / wh); - Roo.log(rescale); //console.log(rescale); imgWidth = Math.floor(imgWidth / rescale); imgHeight = Math.floor(imgHeight / rescale);