Skip to content

Commit

Permalink
Fix safari ghost padding bug(#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Jul 19, 2014
1 parent b101a24 commit 8eff967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jquery.remodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
};

/**
Expand Down Expand Up @@ -331,4 +331,4 @@
}
};
$(window).bind("hashchange." + pluginName, hashHandler);
})(window["jQuery"] || window["Zepto"]);
})(window["jQuery"] || window["Zepto"]);

0 comments on commit 8eff967

Please sign in to comment.