diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-01-13 13:04:30 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-01-13 13:04:30 +0100 |
commit | 8ea0b2051a2f037ee67571c01b816b3a286fb5ee (patch) | |
tree | becf206885b471ef2fe758835f188a0d4b28afc0 /view/theme/redbasic/js | |
parent | c8678ba5a9e1b5c176de85c94570890baec26b13 (diff) | |
download | volse-hubzilla-8ea0b2051a2f037ee67571c01b816b3a286fb5ee.tar.gz volse-hubzilla-8ea0b2051a2f037ee67571c01b816b3a286fb5ee.tar.bz2 volse-hubzilla-8ea0b2051a2f037ee67571c01b816b3a286fb5ee.zip |
another try on preventing double scrollbars when a modal is 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..5410999b4 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, body').css('overflow-x', ''); $('main').removeClass('region_1-on') $('#overlay').remove(); $('#left_aside_wrapper').trigger("sticky_kit:detach"); } else { + $('html, body').css('overflow-x', 'hidden'); $('main').addClass('region_1-on') $('<div id="overlay"></div>').appendTo('section'); $('#left_aside_wrapper').stick_in_parent({ |