evert "prevent double scrollbar when we have a modal larger than the viewport"

This reverts commit 2ace4c57d0.
This commit is contained in:
Mario Vavti 2017-01-13 12:53:45 +01:00
parent 2ace4c57d0
commit c8678ba5a9
2 changed files with 1 additions and 2 deletions

View File

@ -9,6 +9,7 @@
/* generals */
html {
font-size: 100%;
overflow-x: hidden;
}
body {

View File

@ -99,13 +99,11 @@ function makeFullScreen(full) {
function toggleAside() {
$('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
if($('main').hasClass('region_1-on')){
$('html').css('overflow-x', '');
$('main').removeClass('region_1-on')
$('#overlay').remove();
$('#left_aside_wrapper').trigger("sticky_kit:detach");
}
else {
$('html').css('overflow-x', 'hidden');
$('main').addClass('region_1-on')
$('<div id="overlay"></div>').appendTo('section');
$('#left_aside_wrapper').stick_in_parent({