projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
27a35cc
)
ux/Lightbox.js
author
Edward
<edward@roojs.com>
Mon, 16 Jun 2014 06:13:57 +0000
(14:13 +0800)
committer
Edward
<edward@roojs.com>
Mon, 16 Jun 2014 06:13:57 +0000
(14:13 +0800)
ux/Lightbox.js
patch
|
blob
|
history
diff --git
a/ux/Lightbox.js
b/ux/Lightbox.js
index
af7ec6b
..
b2c8e8b
100644
(file)
--- 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);