From ea9d44c20a265e7959825fc115b37e72fe848664 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 26 Apr 2017 08:56:47 +0200 Subject: [PATCH] Fix sticky aside when height change --- view/theme/frio/js/theme.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"); }); }); -- 2.39.5