From 6cba07f9ddfa176bbcd882df84040ea57072e016 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 13 Mar 2014 18:39:39 +0800 Subject: [PATCH] ux/Lightbox.js --- ux/Lightbox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 6effc3ba8d..1091755dfb 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -482,8 +482,7 @@ Roo.apply(Roo.ux.Lightbox.prototype, var widthNew = imgWidth + bs; var heightNew = imgHeight + bs; - Roo.log(heightNew); - Roo.log(wh); + if (widthNew > ww || heightNew > wh) { // bigger than window. // scale here... - bit nasty.. -- 2.39.2