Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-menu scrolls to top when an item is selected #5690

Closed
Magador opened this issue Nov 12, 2015 · 0 comments
Closed

md-menu scrolls to top when an item is selected #5690

Magador opened this issue Nov 12, 2015 · 0 comments
Labels
P4: minor Minor issues. May not be fixed without community contributions.
Milestone

Comments

@Magador
Copy link

Magador commented Nov 12, 2015

Demo: http://codepen.io/Magador/pen/ZbmeRo

When selecting an item or dismissing the opened menu, the page scroll to its top.
The bug happens on Chrome 48, IE 11, but not on Firefox 42.

It seems that body.scrollTop = scrollOffset in src/core/util/utils.js#L254 cannot be changed

Edit: I overcame the bug by setting

body  {
    height: auto;
}

because it's set at 100% in src/core/style/structure.scss#L2
Demo resolved: http://codepen.io/Magador/pen/wKRBLg

@Magador Magador changed the title md-menu scroll to top when an item is selected md-menu scrolls to top when an item is selected Nov 12, 2015
@ThomasBurleson ThomasBurleson added the P4: minor Minor issues. May not be fixed without community contributions. label Jan 15, 2016
@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jan 15, 2016
@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P4: minor Minor issues. May not be fixed without community contributions.
Projects
None yet
Development

No branches or pull requests

3 participants