Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wizard Scrolls off top of screen on Hard Refresh #51

Open
marcodeluca opened this issue Apr 12, 2018 · 4 comments
Open

Wizard Scrolls off top of screen on Hard Refresh #51

marcodeluca opened this issue Apr 12, 2018 · 4 comments
Labels
help-wanted Need a hand to improve the project

Comments

@marcodeluca
Copy link

marcodeluca commented Apr 12, 2018

Working off your dist example (index.html) to recreate the issue:

Add a bunch of content BELOW your wizard form, enough to force a scroll bar. Now do a hard refresh. The page jumps to the #step hashmark and the wizard itself looks like its about maybe 200 pixels off the top of the screen.

Happens in FIREFOX browser. So probably an issue with Firefox and not the script?

@dani0332
Copy link

I am facing the similar issue. Also, in my case when I click next / previous the page jumps to #step-1 making the steps title scrolled off the screen.

It is happening in both Chrome and Firefox

I am using:

  • bootstrap-3.3.7
  • jquery-2.1.1

@ligoo
Copy link

ligoo commented Jun 2, 2018

Horrible fix would be to add this in the _showStep: function(idx) (line 332):

setTimeout(function() {
    window.scrollTo(0, 0);
}, 1);

And don't forget to add this function on your $(document).ready(function() if the user comes from the url directly (or reload page)

@MartinP7r
Copy link

Same thing happens for me on firefox and chrome as well. any other solutions than scrolling back manually?

@vlatro
Copy link

vlatro commented Mar 4, 2020

Having the same issue when the content in 1 step is more than the height of my screen.
You can simulate it too when you go here and click for ex. on the tab "Ajax Contents" http://techlaboratory.net/smartwizard/demo/basic

any solutions yet?

@techlab techlab added the help-wanted Need a hand to improve the project label Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Need a hand to improve the project
Projects
None yet
Development

No branches or pull requests

6 participants