This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(autocomplete): show dropdown on top only when there is room #11575
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Don't use the bounding rectangles of a document body to determine the position of the dropdown. Top and bottom values of the snap element are relative to the viewport, which is enough to decide about the position of the dropdown. Fixes angular#10859
Splaktar
approved these changes
Jan 3, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We're currently investigating a regression that "might" be caused by this. PR #11626 reverts this change and is being tested to see if it solves the issue. |
Splaktar
added a commit
that referenced
this pull request
Feb 1, 2019
3 tasks
Splaktar
added a commit
that referenced
this pull request
Feb 1, 2019
jelbourn
pushed a commit
that referenced
this pull request
Feb 8, 2019
Splaktar
added a commit
that referenced
this pull request
Mar 10, 2019
Splaktar
added a commit
that referenced
this pull request
Mar 10, 2019
3 tasks
Splaktar
added a commit
that referenced
this pull request
Mar 10, 2019
Splaktar
added a commit
that referenced
this pull request
Mar 18, 2019
andrewseguin
pushed a commit
that referenced
this pull request
Mar 20, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
cla: yes
PR author has signed Google's CLA: https://opensource.google.com/docs/cla/
P3: important
Important issues that really should be fixed when possible.
pr: lgtm
This PR has been approved by the reviewer
pr: merge ready
This PR is ready for a caretaker to review
type: bug
ux: integration
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Don't use the bounding rectangles of a document body to determine
the position of the dropdown.
Top and bottom values of the snap element are relative to the viewport,
which is enough to decide about the position of the dropdown.
Fixes #10859
PR Checklist
Please check that your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Dropdown is shown on top even if there is not enough space for it.
Issue Number: #10859
What is the new behavior?
A proper checks are made to determine if the dropdown should be shown on top or under.
Does this PR introduce a breaking change?
Other information