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

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

Open
jaimestuardo opened this issue Jan 23, 2023 · 1 comment
Open

Comments

@jaimestuardo
Copy link

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

@mflawson-ed
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants