From e8412a7cccc9f4978f5152e75669d7f389068555 Mon Sep 17 00:00:00 2001 From: Mariano Costanzo Date: Wed, 17 Dec 2014 11:27:17 -0300 Subject: [PATCH] new option to add horizontal distance --- jquery.bpopup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.bpopup.js b/jquery.bpopup.js index 363911b..debaca8 100644 --- a/jquery.bpopup.js +++ b/jquery.bpopup.js @@ -305,7 +305,7 @@ function calcPosition(){ vPos = fixedVPos ? o.position[1] : Math.max(0, ((wH- $popup.outerHeight(true)) / 2) - o.amsl) - , hPos = fixedHPos ? o.position[0] : (wW - $popup.outerWidth(true)) / 2 + , hPos = fixedHPos ? o.position[0] : ((wW - $popup.outerWidth(true)) / 2) - o.xAdd , inside = insideWindow(); }; @@ -354,6 +354,7 @@ , speed: 250 // open & close speed , transition: 'fadeIn' //transitions: fadeIn, slideDown, slideIn, slideBack , transitionClose: false + xAdd: 0 , zIndex: 9997 // popup gets z-index 9999, modal overlay 9998 }; })(jQuery);