From: Alan Knowles Date: Wed, 23 Feb 2011 02:10:48 +0000 (+0800) Subject: ux/Lightbox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=c3972061f70f1143543d3e0f22ef8b3553dca43f ux/Lightbox.js --- diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 6c239d0ed0..60e13f077a 100644 --- 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 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 @@ -406,8 +405,6 @@ Roo.apply(Roo.ux.Lightbox.prototype, }) //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);