diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-07-02 17:49:03 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-07-02 17:49:03 +0200 |
commit | cca3eb8c56f429e12d69033facb62ceda56cb27c (patch) | |
tree | f1a945251d379eb6f9dcc91100ff982bcfd953ee /view | |
parent | 933c097a52cd3947019a5fc00d534c53ccf94484 (diff) | |
download | volse-hubzilla-cca3eb8c56f429e12d69033facb62ceda56cb27c.tar.gz volse-hubzilla-cca3eb8c56f429e12d69033facb62ceda56cb27c.tar.bz2 volse-hubzilla-cca3eb8c56f429e12d69033facb62ceda56cb27c.zip |
work around the fact that sticky does not stick if a parent element has set overflow to hidden
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index b0b8d5dfc..35811b524 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -139,12 +139,12 @@ 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', ''); + $('html, body').css({ 'position': '', 'left': '' }); $('main').removeClass('region_1-on') $('#overlay').remove(); } else { - $('html, body').css('overflow-x', 'hidden'); + $('html, body').css({ 'position': 'sticky', 'left': 0 }); $('main').addClass('region_1-on') $('<div id="overlay"></div>').appendTo('section'); } |