diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-01-13 11:24:34 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-01-13 11:24:34 +0100 |
commit | 2ace4c57d0a1b5d0030139c28d7d72e071d8b4d8 (patch) | |
tree | 4125b279362595f82758f3f6c82d4ebf7aa57477 /view/theme/redbasic/js | |
parent | 8ef84e2aa74bdc280b6a450a553d71ba492a01cc (diff) | |
download | volse-hubzilla-2ace4c57d0a1b5d0030139c28d7d72e071d8b4d8.tar.gz volse-hubzilla-2ace4c57d0a1b5d0030139c28d7d72e071d8b4d8.tar.bz2 volse-hubzilla-2ace4c57d0a1b5d0030139c28d7d72e071d8b4d8.zip |
prevent double scrollbar when we have a modal larger than the viewport
Diffstat (limited to 'view/theme/redbasic/js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 3ff0c43ae..6bcdd131f 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -99,11 +99,13 @@ 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({ |