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

Tab content scrolls out of view in Edge #12582

Open
negberts opened this issue Aug 8, 2018 · 2 comments
Open

Tab content scrolls out of view in Edge #12582

negberts opened this issue Aug 8, 2018 · 2 comments
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions

Comments

@negberts
Copy link

negberts commented Aug 8, 2018

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Tab group should not scroll when clicking a different tab

What is the current behavior?

When a tab group is below on the page, the page scrolls back to the top of the tabset, hiding the content of the tab and you have to scroll again to view the content of the tab.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-ejf4cu?file=app/app.component.html

Browse all the way to the bottom so that the content of tab 1 is visible. Click on tab 2. The content of the tab scrolls out of view.

What is the use-case or motivation for changing an existing behavior?

If you are viewing Tab 1 and click on Tab 2 you don't want to scroll again. Tab 2 should become visible directly.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 6.1.1
Material 6.4.3
Typescript 2.9.2
Edge

Is there anything else we should know?

@josephperrott josephperrott added the P4 A relatively minor issue that is not relevant to core functions label Sep 6, 2018
@josephperrott
Copy link
Member

@crisbeto Were you looking at this already? I seem to remember you working on preventing changing tabs changing scroll position?

@crisbeto
Copy link
Member

crisbeto commented Sep 7, 2018

I did #6812 a while ago, but that was for the scroll position inside the tabs, rather than the position on the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

4 participants