From bbe45c2eb568f2bb08fb9b27e2e4596017caf9a7 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 16 Jun 2014 14:13:57 +0800 Subject: [PATCH] ux/Lightbox.js --- ux/Lightbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ux/Lightbox.js b/ux/Lightbox.js index af7ec6b677..b2c8e8b7e8 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -493,6 +493,7 @@ 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); -- 2.39.2