From 5dbc404377e1df7add64222c30fa22a95eb9dc67 Mon Sep 17 00:00:00 2001 From: Christian Grabowski Date: Fri, 20 Feb 2015 11:15:41 -0500 Subject: [PATCH] include vertical scroll position in top offset to properly position reveal --- js/foundation/foundation.reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.2