diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-04 15:29:14 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-04 15:29:14 -0800 |
commit | 982b596fa465fce3477decc5d19763c76425e2f7 (patch) | |
tree | d8bb548d4f8c530449f7f71450610907071e1d4c /view/theme/redbasic/js/redbasic.js | |
parent | ced84a2b01ce207bd213a7f712697e9a4b4dc519 (diff) | |
parent | 0364bf491396c742d550fd6b0d22b929e3681432 (diff) | |
download | volse-hubzilla-982b596fa465fce3477decc5d19763c76425e2f7.tar.gz volse-hubzilla-982b596fa465fce3477decc5d19763c76425e2f7.tar.bz2 volse-hubzilla-982b596fa465fce3477decc5d19763c76425e2f7.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 395385411..185dc7bcd 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -30,6 +30,15 @@ $(document).ready(function() { } }); + var left_aside_height = $('#left_aside_wrapper').height(); + + $('#left_aside_wrapper').on('click', function() { + if(left_aside_height != $('#left_aside_wrapper').height()) { + $(document.body).trigger("sticky_kit:recalc"); + left_aside_height = $('#left_aside_wrapper').height(); + } + }); + if($('#left_aside_wrapper').length && $('#left_aside_wrapper').html().length === 0) { $('#expand-aside').hide(); } @@ -96,7 +105,7 @@ function toggleAside() { $('main').addClass('region_1-on') $('<div id="overlay"></div>').appendTo('section'); $('#left_aside_wrapper').stick_in_parent({ - offset_top: $('nav').outerHeight(true) + offset_top: $('nav').outerHeight(true) - 10 }); } } |