From: Christian Grabowski Date: Fri, 20 Feb 2015 16:15:41 +0000 (-0500) Subject: include vertical scroll position in top offset to properly position reveal X-Git-Tag: v5.5.2~94^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6309%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git include vertical scroll position in top offset to properly position reveal --- diff --git a/js/foundation/foundation.reveal.js b/js/foundation/foundation.reveal.js index bbc42ce97..73e5869c5 100644 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -461,7 +461,7 @@ }, cache_offset : function (modal) { - var offset = modal.show().height() + parseInt(modal.css('top'), 10); + var offset = modal.show().height() + parseInt(modal.css('top'), 10) + modal.scrollY; modal.hide();