• 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://wordpress.org/plugins/tabby-responsive-tabs/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cubecolour

    (@numeeja)

    Please link to the page on your site where you are using this so I can see what it is doing.

    Thread Starter Luke2581

    (@luke2581)

    Plugin Author cubecolour

    (@numeeja)

    it looks like you have have copied & pasted some stray < pre > & < code > tags enclosing the example tab shortcodes – try removing those.

    Thread Starter Luke2581

    (@luke2581)

    The pre tags were the culprit. Not sure how they got in there exactly but I’m working on the site with a content developer so there is some overlap that we miss sometimes. Thanks for the speedy response and resolution!

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

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