From: fabrixxm Date: Wed, 26 Apr 2017 06:56:47 +0000 (+0200) Subject: Fix sticky aside when height change X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea9d44c20a265e7959825fc115b37e72fe848664;p=friendica.git Fix sticky aside when height change --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index d567333b23..7412df9b8e 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -320,7 +320,13 @@ $(document).ready(function(){ * Sticky aside on page scroll */ $("aside").stick_in_parent({ - offset_top: 100 // px, header + tab bar + spacing + offset_top: 100, // px, header + tab bar + spacing + recalc_every: 10 + }); + // recalculate sticky aside on clicks. + // this handle height changes on expanding submenus + $("aside").on("click", function(){ + $(document.body).trigger("sticky_kit:recalc"); }); });