• Resolved Luke2581

    (@luke2581)


    First off, love the plugin so thank you for that!

    So basically what I am trying to do is to stop the panel from moving down as I move down each tab. I changed it’s styling so the tabs are stacked on top of each other and the panel pops out to the right of each tab. I just want the panel to stay lined up to the right of the tabs but it moves down 10px or so each time I go to a lower tab. Any suggestions? Thanks!

    I commented this code out in tabby.js:

    //scroll to active heading only if it is below previous one
    /*var tabsPos = $tabs.offset().top;
    var newActivePos = ($tabHeading.offset().top) – 15;
    if(oldActivePos < newActivePos) {
    $(‘html, body’).animate({ scrollTop: tabsPos }, 0).animate({ scrollTop: newActivePos }, 550);
    }*/

    Didn’t seem to stop it (Was pretty sure it wouldn’t anyways, pretty rusty on my JavaScript)

    Can post my site if you need to see it. Thanks again

    https://ww.wp.xz.cn/plugins/tabby-responsive-tabs/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Stop panel from moving down’ is closed to new replies.