projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75639e3
)
ux/Lightbox.js
author
Edward
<edward@roojs.com>
Thu, 13 Mar 2014 10:38:56 +0000
(18:38 +0800)
committer
Edward
<edward@roojs.com>
Thu, 13 Mar 2014 10:38:56 +0000
(18:38 +0800)
ux/Lightbox.js
patch
|
blob
|
history
diff --git
a/ux/Lightbox.js
b/ux/Lightbox.js
index
1903892
..
ce12fba
100644
(file)
--- 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;
//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;
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;
// 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..
if (widthNew > ww || heightNew > wh) {
// bigger than window.
// scale here... - bit nasty..