components icon indicating copy to clipboard operation
components copied to clipboard

Mat-autocomplete overlay height is not correct

Open jainankit102 opened this issue 8 years ago • 2 comments

Bug, feature request, or proposal:

Bug Mat-autocomplete overlay height is not correct proper when user working on 200% browser resolution.

What is the expected behavior?

It should come under selected resolution screen. Overlay height should be adjusted as screen resolution.

What is the current behavior?

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
Everywhere, check official example at 200% resolution with minimum 10 option.

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

Accessibility are facing hard to identify

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

5.2 and 6.0+

Is there anything else we should know?

image

My Analysis: By default for every screen resolution mat-autocomplete-panel has max-height 256px so if user in higher resolution above 200% then it is getting out from the screen. Overlay height should be adjusted as screen resolution.

jainankit102 avatar Jun 12 '18 12:06 jainankit102

By the looks of it, this is behaving as expected. The logic for placing the panel is that it puts it above or below, depending on which position will show the largest area of the panel. We also have an API for pushing the panel into the viewport if it can't fit, but it's currently disabled because of https://github.com/angular/material2/pull/11628.

crisbeto avatar Jun 25 '18 18:06 crisbeto

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.