megamenu offset on "scroll down" menu on some posts

Posted in: Newspaper
Post count: 40

hi,
just discovered something strange
on this post for exemple, when you scroll down and get the “pull down” menu, mega menu works just fine
https://www.welovetennis.fr/atp/atp-moselle-open/boutter-un-vrai-bon-cru

but on this one it gets an offset that makes it almost unusable
https://www.welovetennis.fr/laver-cup/la-laver-cup-resumee-en-1-cliche-et-quelques-stats

I suspect that it’s linked with the fact that the post has a tweet content… but not easy to debug

is there a fix ?

thanks


update

In composer no problem
https://pasteboard.co/IyGaX0R.png

On front site it bugs
https://pasteboard.co/IyGbxog.png

But changing browser window width seems to fix the issue!
https://pasteboard.co/IyGdeFc.png

OK so here comes a quick fix that seems to work

/* fix megamenu offset when post has a tweet */
(function($){
$(window).load(function() {
$(this).trigger(‘resize’)
})
})(jQuery)

  • This topic was modified 6 years by cantoute.
Viewing 1 post (of 1 total)
The forum ‘Newspaper’ is closed to new topics and replies.