You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the trigger for a matMenu is within or itself a position: fixed element, the menu ignores it and appears relative to the scroll position of the page.
What is the expected behavior?
For the menu to appear as intended, given its input values, relative to its trigger, regardless of having scrolled, and regardless of fixed, absolute or static positioning values of the trigger or the trigger's ancestors.
What is the current behavior?
The matMenu appears further down the page if the page has scrolled; not relative to its trigger. If you continue to scroll with the menu open the menu will go up or down with the page.
What are the steps to reproduce?
Create a trigger within a div that is fixed to the top of the page.
Add a matMenu to be triggered. Can also be a child of said div -- does not matter.
Add content or styling such that the page has a sizeable scroll
Load page, scroll partially down the page, trigger the menu
What is the use-case or motivation for changing an existing behavior?
Allow menus to be triggered from fixed elements; such as sticky headers
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 6.1.0-rc.0
Material / CDK: 6.3.3
Is there anything else we should know?
"Bob" at the top is the trigger:
The text was updated successfully, but these errors were encountered:
Bug, feature request, or proposal:
When the trigger for a matMenu is within or itself a position: fixed element, the menu ignores it and appears relative to the scroll position of the page.
What is the expected behavior?
For the menu to appear as intended, given its input values, relative to its trigger, regardless of having scrolled, and regardless of fixed, absolute or static positioning values of the trigger or the trigger's ancestors.
What is the current behavior?
The matMenu appears further down the page if the page has scrolled; not relative to its trigger. If you continue to scroll with the menu open the menu will go up or down with the page.
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Allow menus to be triggered from fixed elements; such as sticky headers
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 6.1.0-rc.0
Material / CDK: 6.3.3
Is there anything else we should know?
"Bob" at the top is the trigger:
The text was updated successfully, but these errors were encountered: