From 68fbb6ed08197f943532a378e62fc7406e08e2d8 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 Feb 2011 10:10:15 +0800 Subject: [PATCH] ux/Lightbox.js --- ux/Lightbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 2bd45f7258..6c239d0ed0 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -394,7 +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 // weird.. why / 10? var lightboxTop = s.top + (Roo.lib.Dom.getViewHeight() / 10); @@ -406,7 +406,8 @@ 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); -- 2.39.2