From 8eff967588fc3b860a98b5f4c2afc4ac527e767c Mon Sep 17 00:00:00 2001 From: VodkaBears Date: Sat, 19 Jul 2014 19:45:14 +0400 Subject: [PATCH] Fix safari ghost padding bug(#26) --- src/jquery.remodal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jquery.remodal.js b/src/jquery.remodal.js index 30606de..84c0ac1 100644 --- a/src/jquery.remodal.js +++ b/src/jquery.remodal.js @@ -81,16 +81,16 @@ * Lock screen */ var lockScreen = function () { - $("html, body").addClass(pluginName + "_lock"); $(document.body).css("padding-right", "+=" + getScrollbarWidth()); + $("html, body").addClass(pluginName + "_lock"); }; /** * Unlock screen */ var unlockScreen = function () { - $("html, body").removeClass(pluginName + "_lock"); $(document.body).css("padding-right", "-=" + getScrollbarWidth()); + $("html, body").removeClass(pluginName + "_lock"); }; /** @@ -331,4 +331,4 @@ } }; $(window).bind("hashchange." + pluginName, hashHandler); -})(window["jQuery"] || window["Zepto"]); \ No newline at end of file +})(window["jQuery"] || window["Zepto"]);