alvarotrigo / fullPage.js

fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple
http://alvarotrigo.com/fullPage/
GNU General Public License v3.0
35.25k stars 7.3k forks source link

used screenfull.js with fullpage.js problem #2983

Closed tudtude closed 6 years ago

tudtude commented 6 years ago

fullpage.js not re calculate new height when request fullscreen mode but if we rotate mobile everything 100% work.

Is it possible to let it work, by first click on button to request to fullscreen? I try to used step like this but not work. 1) when page open call fullpage.js 2) when user click fullscreen button call $.fn.fulpage.drestroy(); 3) after that call fullpage.js again!

Steps to reproduce it

  1. add https://cdnjs.cloudflare.com/ajax/libs/screenfull.js/3.3.2/screenfull.js in project
  2. create button to call function screenfull.request();
  3. It will show some withe box at bottom of mobile if we scroll to new page withe box still maintain.
  4. If rotate mobile one time to change view from vertical to horizontal everything will work 100%

Versions

fullPage 2.9.4, android, chrome

alvarotrigo commented 6 years ago

when user click fullscreen button call $.fn.fulpage.drestroy();

Try calling $.fn.fulpage.drestroy('all');

Closed until an isolated reproduction is provided as detailed in the reporting issues guidelines and the issue skeleton.

tudtude commented 6 years ago

I was solve the problem already by destroy them after fullscreen and re-call it again by add delay time.

Thank you for support, you are very nice to make this for another people when I got some money from my project will invite you to coffee :)

alvarotrigo commented 6 years ago

Nice to know you solved it! ;)