Fullpage.js: refresh iscroll

Created on 25 Feb 2019  ·  4Comments  ·  Source: alvarotrigo/fullPage.js

i have a problem with an image that's getting loaded dynamically by a script.
the section uses scrollOverflow:true and the image gets cropped
(iScroll calculates the height of this section without the image).

how do i call the refresh method provided by iScroll after the image is loaded?
https://github.com/cubiq/iscroll#mastering-the-refresh-method

question

All 4 comments

at the moment i'm triggering the window resize event on this slide to get the refresh method called.
https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events
this is a hacky solution and i would enjoy if there is a cleaner way to do that.

Hi,

Have you tried calling rebuild?
fullpage_api.reBuild();

yes, rebuild works, thank you! this can be closed now...

@meceware thanks for the answer! I appreciate it! 😉

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VanIvano picture VanIvano  ·  5Comments

Sperziemone picture Sperziemone  ·  5Comments

cavias picture cavias  ·  3Comments

kacho picture kacho  ·  3Comments

lunaandyou picture lunaandyou  ·  4Comments