techlab/jquery-smartwizard

When moving to a tab, the page should move to the top of the wizard

jaimestuardo opened this issue · 1 comments

If you have a wizard whose tab contents are big and the toolbar is placed at the bottom, then you press the "Next" button to change the tab, the bottom of the next tab is shown, so the user should manually scroll to the top of the wizard to start reading the content.

I think when changing tabs, the page shoould scroll automatically up to the top of the wizard.

regards
Jaime

I found this too, but fixed it by adding in the jquery code:

            $('html, body').animate({
                scrollTop: $("#wizard_nav").offset().top
            }, 500);

after the callback() function (the wizard_nav is an internal anchor I added to the smartnav holder to give it an endpoint to refer to. HTH