From 7796c50780cc0df3e59e0f4d14b55431a13496dd Mon Sep 17 00:00:00 2001 From: Charles Robertson Date: Thu, 30 Jun 2016 11:17:56 +0100 Subject: [PATCH] Update shadowbox.js The container element needs to be positioned at top: 0px, otherwise shadowbox does bot appear in Firefox or IE --- source/shadowbox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shadowbox.js b/source/shadowbox.js index e5b4757..cf4417a 100644 --- a/source/shadowbox.js +++ b/source/shadowbox.js @@ -481,7 +481,8 @@ */ function setContainerPosition() { setStyle(containerElement, "left", documentElement.scrollLeft + "px"); - setStyle(containerElement, "top", documentElement.scrollTop + "px"); + // Fix for IE & Firefox [Charles Robertson 30.06.16] + setStyle(containerElement, "top", "0px"); } var troubleElementTagNames = [ "select", "object", "embed", "canvas" ];