components icon indicating copy to clipboard operation
components copied to clipboard

feat(mat-menu): Height menu is reducing when the page is scrolling

Open lfdantoni opened this issue 8 years ago • 5 comments

Bug, feature request, or proposal:

When the menu is opened and scrolling it, the height menu is reducing.

What is the expected behavior?

The height menu shouldn't change.

What is the current behavior?

The height menu is reducing

What are the steps to reproduce?

  • Open menu
  • Scroll page

menu-issue

https://stackblitz.com/edit/angular-material-menu-issue

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

Better user experience

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

Version 7

Is there anything else we should know?

I found It is happening in the menu overlay, when page is scrolling, the overlay height is reducing but, if the user scrolls to oposite way, this heigh is not recovering its height that it had before.

lfdantoni avatar Nov 05 '18 15:11 lfdantoni

+1. Experiensing this as well except that height does not recover at all in my case

DmitryEfimenko avatar Jan 14 '19 03:01 DmitryEfimenko

+1 still no any idea?

Rem1te avatar Sep 18 '19 10:09 Rem1te

any solution?

1clique avatar Oct 15 '19 07:10 1clique

This issue might be resolved (at least partially) by setting height: fit-content; on the panel element:

example.component.scss <mat-menu class="example-class" ... > ... </mat-menu>

example.component.scss ::ng-deep .example-class { height: fit-content; }

thesmooth avatar Dec 13 '19 23:12 thesmooth

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.