Fullpage rebuild is not triggered

638 Views Asked by At

I have a slide with dropdown-menus (drawers). The drawers are all collapsed in the beginning, and once opened, there's not enough room left in the slide. I tried to rebuild manually after opening the drawer, but it doesn't work.

var myFullpage;
    myFullpage = new fullpage('#fullpage', {
    licenseKey: 'XXXXXXXXXXXXXXXXXX',
    verticalCentered: false,
    loopHorizontal: false,
    scrollOverflow: true
    });

    $(".drawer-header").click(function(){
         $(this).parent().siblings().removeClass("active");
         $(this).parent().toggleClass("active");

         myFullpage.rebuild();    
    })

I'm using jQuery, I got a license for fullpage.js and I'm using the scrollOverflow-Addon.

Thank you!

1

There are 1 best solutions below

2
On

Try this instead:

fullpage_api.reBuild();