From: Edward Date: Thu, 13 Mar 2014 10:10:50 +0000 (+0800) Subject: ux/Lightbox.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=9595ed64cfd39745518977312e2662850efea669;p=roojs1 ux/Lightbox.js --- diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 50310ceec4..cbd5c6dc68 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -443,10 +443,10 @@ Roo.apply(Roo.ux.Lightbox.prototype, // once image is preloaded, resize image container imgPreloader.on('load', function() { - + Roo.log(this.imageArray); this.lightboximage.dom.src = this.imageArray[this.activeImage].href || - this.imageArray[this.activeImage].dom.href; - Roo.log(this.lightboximage.dom.src); + this.imageArray[this.activeImage].dom.href || this.imageArray[this.activeImage].dom.src; + this.resizeImageContainer(imgPreloader.getWidth(), imgPreloader.getHeight()); imgPreloader.remove(); }, this);