From 236e9e26dc1ef37cdeb8cf19405ad90de952a048 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 13 Mar 2014 18:38:56 +0800 Subject: [PATCH] ux/Lightbox.js --- ux/Lightbox.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.. -- 2.39.2