angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.24k stars 6.7k forks source link

In some cases (for small-ish chrome windows) not all options are visible/clickable in mat-select. #13829

Open pitex opened 5 years ago

pitex commented 5 years ago

Bug, feature request, or proposal:

Bug

What is the expected behavior?

In small windows, all options in mat-select should be visible for users.

What is the current behavior?

In some cases, the last option is not visible.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV

  1. Open https://material.angular.io/components/select/overview
  2. Scroll to "Select with option groups", so that mat-select is the first thing visible below toolbar
  3. Open the dropdown
  4. Resize the window from the bottom until the lowest option is not visible (it will happen when browser has ~250 pixel height)
  5. Scroll the dropdown to the bottom, last item is not visible at any point

Now closing/reopening won't change the position of select overlay.

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

We've got a bug report from user that one of the options is not available in the dropdown, and we found out that it was caused by this bug.

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

Angular: 7.0.0, Material: 7.0.1, Chrome version 70.0.3538.77

Is there anything else we should know?

Screenshot of the issue on the documentation:

screen shot 2018-10-26 at 5 41 42 pm
FelixPohl commented 3 weeks ago

This issue has come up for me recently.

Would be great if this could be handled by Material!