test
Viewing 1 post (of 1 total)
  • Author
    Posts
  • doorknob Friend
    #193120

    jQuery sticky navigation worked fine in t3_blank v1.4.3 but when I added it to the t3_bs3_blank v2.0.0 template, there was a problem using the off-canvas slider. When the feature was activated, the main menu which had been docked at the top of the screen jumped to its original position. I fixed this with a small change to the T3 JavaScript (and an edit to my sticky nav CSS). If anyone has a similar problem, I fixed it by changing t3/base-bs3/js/off-canvas.js line 86 from

    mtop = -$parent.offset().top;
    to

    dataoffset = parseInt($this.attr('data-offset-top'), 10);
    dataoffset = isNaN(dataoffset) ? 0 : dataoffset;
    mtop = -($parent.offset().top + dataoffset);

    This takes care of the vertical positioning (fully compatible whether or not you use stick nav). The horizontal positioning can be fixed by CSS (I haven’t posted this because it won’t be ‘one size fits all’).

    Regards
    Phil

    This is still an issue in T3 v2.0.2

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  doorknob 10 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum