Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

autocomplete: shows dropdown on top even when there is no room #10859

@begemott

Description

@begemott

Actual Behavior:

  • What is the issue? *
    Sometimes the autocomplete dropdown will be shown at the top of an input, partially out of the screen, but it should be bottom position in this case.

CodePen (or steps to reproduce the issue): *

Steps to reproduce

  • The md-autocomplete should not have md-dropdown-position (position should be determined automatically)
  • The md-autocomplete's input should be placed below the screen, so the window should be scrolled to see the input.
  • Scroll the window until the md-autocomplete's input gets the top of the window
  • Focus the input
  • The autocomplete dropdown will be shown at the top of input partially out of the screen, but should be at the input's bottom

AngularJS Versions: *

  • AngularJS Version: 1.5.5
  • AngularJS Material Version: 1.1.4

Additional Information:

  • Browser Type: * Chrome, FF, IE
  • Browser Version: * Chrome - 60.0.3112.90, FF - 54.0.1, IE - 11
  • OS: * Window 7

Another issue reproduced on FF and IE only - after closing the dropdown the window is scrolled to the window top.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions