Offset for sticky header not working

Hi, you have some code to calculate the height of the header for using as offset for the in-page scroll links.

in x-body.js(1831) you have:
var navbarFixedTopHeight = $('.x-navbar-fixed-top-active .x-navbar').outerHeight();

This will get the offset to use in the function animateOffset()

The problem is that as far as i can understand, this is the xtheme header css classnames and not the xpro header menu classnames.

it guess it would work if you use:
jQuery('.x-bar-fixed.x-bar-top.x-bar').outerHeight();
But those classes are not added to the element until you start to scroll.

The xpro header configuration is sticky, shrinking, and relative.

Any idea how to solve this?

Hi there,

You are exactly in the right place. Actually, that is our challenge at the moment and due to the header builder complicated nature, we were unable to implement the one-page navigation scrolling functionality for Pro.

The feature is under heavy development and it will be available in future releases. Unfortunately, at the moment we do not have any alternative to suggest.

Thank you for your understanding and patience.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.