aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-22 14:55:05 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-22 14:55:36 +0100
commita7a3ce72456b7c1ca1838bd59075e2a656459b81 (patch)
tree4b771b5d3b3f650c1c35d3d6036f5edc59ddcf71 /view
parent007ba2bee4ae0d0fec8ce97a3b5bebc8b900c68b (diff)
downloadvolse-hubzilla-a7a3ce72456b7c1ca1838bd59075e2a656459b81.tar.gz
volse-hubzilla-a7a3ce72456b7c1ca1838bd59075e2a656459b81.tar.bz2
volse-hubzilla-a7a3ce72456b7c1ca1838bd59075e2a656459b81.zip
a cleaner way to work around browser bugs
Diffstat (limited to 'view')
-rw-r--r--view/theme/redbasic/js/redbasic.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 5691a40d0..f97467947 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -14,7 +14,6 @@ $(document).ready(function() {
}
});
}
-
$('#css3-calc').remove(); // Remove the test element
$('#left_aside_wrapper').stick_in_parent({
@@ -96,15 +95,13 @@ function toggleAside() {
if($('main').hasClass('region_1-on')){
$('main').removeClass('region_1-on')
$('#overlay').remove();
+ $('#left_aside_wrapper').trigger("sticky_kit:detach");
}
else {
$('main').addClass('region_1-on')
$('<div id="overlay"></div>').appendTo('section');
+ $('#left_aside_wrapper').stick_in_parent({
+ offset_top: $('nav').outerHeight(true)
+ });
}
-
- $(window).scroll();
- // work around a bug where a browser seems to not trigger scroll with $(window).scroll()
- var scrollpos = $(window).scrollTop();
- $(window).scrollTop(scrollpos - 1);
- setTimeout(function(){ $(window).scrollTop(scrollpos) }, 100);
}