projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68fbb6e
)
ux/Lightbox.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 Feb 2011 02:10:48 +0000
(10:10 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 Feb 2011 02:10:48 +0000
(10:10 +0800)
ux/Lightbox.js
patch
|
blob
|
history
diff --git
a/ux/Lightbox.js
b/ux/Lightbox.js
index
6c239d0
..
60e13f0
100644
(file)
--- a/
ux/Lightbox.js
+++ b/
ux/Lightbox.js
@@
-394,8
+394,7
@@
Roo.apply(Roo.ux.Lightbox.prototype,
}
*/
var s = Roo.get(document).getScroll();
}
*/
var s = Roo.get(document).getScroll();
- var pt = document.body.scrollTop;
- // calculate top and left offset for the lightbox
+ // calculate top and left offset for the lightbox
// weird.. why / 10?
var lightboxTop = s.top + (Roo.lib.Dom.getViewHeight() / 10);
var lightboxLeft = s.left
// weird.. why / 10?
var lightboxTop = s.top + (Roo.lib.Dom.getViewHeight() / 10);
var lightboxLeft = s.left
@@
-406,8
+405,6
@@
Roo.apply(Roo.ux.Lightbox.prototype,
})
//console.log("show lightbox");
this.lightbox.show();
})
//console.log("show lightbox");
this.lightbox.show();
- // reset it... as we add crap, which messes up scolling..
- var document.body.scrollTop = pt;
this.changeImage(imageNum);
this.changeImage(imageNum);