From: Edward Date: Thu, 13 Mar 2014 10:38:56 +0000 (+0800) Subject: ux/Lightbox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=236e9e26dc1ef37cdeb8cf19405ad90de952a048 ux/Lightbox.js --- diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 190389256f..ce12fbad02 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -471,19 +471,18 @@ Roo.apply(Roo.ux.Lightbox.prototype, //fixme need better calcs. var w = window; - Roo.log(w); var ww = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth); var wh = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight); ww -= 150; wh -= 150; - Roo.log(ww); + // get new width and height var bs = this.borderSize * 2; var widthNew = imgWidth + bs; var heightNew = imgHeight + bs; - + Roo.log(widthNew); if (widthNew > ww || heightNew > wh) { // bigger than window. // scale here... - bit nasty..