You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Overlay-based components should handle page scroll gracefully #4093
Autocomplete does support repositioning upon resize / scroll. But not when dropdown list items change and there by height of dropdown.
Also why is the position dependent on height of dropdown? it can be accommodated above/below just based on availability of space? Or is there a priority to show it below?
Consider a case where one option is already entered("png-alpha" in screenshot). Now when focus is back in the input there is just enough space below the control to show one option(already selected one) and it fits in.
Figure 1: single item accommodated in just-enough-space
But if we delete couple of characters from the input text, more options showup but doesn't update position to above neither does it allow to scroll beyond document height.
Figure 2: broadening search critereon brings in more items but not accessible via scroll/neither does it reposition
If I do a scroll or blur/focus-back the repositioning is triggered correctly, but not upon change in "input text" or "dropdown-list" length.
_Figure 3: clicking out to blur and focusing in back fixes the issue and triggers repositioning _
This can be fixed by either of the following in my opinion:
1. Updating position when input text changes along with scroll, which might eat up performance.
2. Make position(above/below) irrespective of height of dropdown and only based on proximity of input element to screen edges. This way figure 1 should show the options above irrespective of the fact that it can be accommodated below.
using master "@angular/material": "git+https://github.com/angular/material2-builds.git"
@crisbeto@jelbourn
Isn't this fix merged in the latest beta version(2.0.0-beta.5). It works in the example provided.
Still my autocomplete options scrolls with the page.
If not please let me know, how to include those changes.
Activity
feat(overlay): add scroll handling strategies
feat(overlay): add scroll handling strategies
feat(overlay): add scroll handling strategies (#4293)
sabithpocker commentedon May 8, 2017
Auto complete overlayed dropdown position is not updated on scroll.
sabithpocker commentedon May 12, 2017
Autocomplete does support repositioning upon resize / scroll. But not when dropdown list items change and there by height of dropdown.
Also why is the position dependent on height of dropdown? it can be accommodated above/below just based on availability of space? Or is there a priority to show it below?
Consider a case where one option is already entered("png-alpha" in screenshot). Now when focus is back in the input there is just enough space below the control to show one option(already selected one) and it fits in.
Figure 1: single item accommodated in just-enough-space
But if we delete couple of characters from the input text, more options showup but doesn't update position to above neither does it allow to scroll beyond document height.
Figure 2: broadening search critereon brings in more items but not accessible via scroll/neither does it reposition
If I do a scroll or blur/focus-back the repositioning is triggered correctly, but not upon change in "input text" or "dropdown-list" length.

_Figure 3: clicking out to
blurand focusing in back fixes the issue and triggers repositioning _This can be fixed by either of the following in my opinion:
1. Updating position when input text changes along with scroll, which might eat up performance.
2. Make position(above/below) irrespective of height of dropdown and only based on proximity of input element to screen edges. This way figure 1 should show the options above irrespective of the fact that it can be accommodated below.
using master
"@angular/material": "git+https://github.com/angular/material2-builds.git"crisbeto commentedon May 12, 2017
#4469 will reposition the autocomplete panel when the amount of items changes.
feat(overlay): add scroll blocking strategy
feat(overlay): add scroll blocking strategy
feat(overlay): add scroll blocking strategy
feat(overlay): add scroll blocking strategy (#4500)
sudheeshcm commentedon May 24, 2017
@crisbeto @jelbourn
Isn't this fix merged in the latest beta version(2.0.0-beta.5). It works in the example provided.
Still my autocomplete options scrolls with the page.
If not please let me know, how to include those changes.
Thanks,
Sudheesh
Zefling commentedon May 24, 2017
@sudheeshcm Are you in this case : #4557 ?
sudheeshcm commentedon May 25, 2017
@Zefling I'm not exactly sure. Tried removing all the "overflow: auto" styles, and still have this issue.
5 remaining items
feat(overlay): more flexible scroll strategy API and ability to defin…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
feat(overlay): add providers for overriding the scroll strategies per…
angular-automatic-lock-bot commentedon Sep 6, 2019
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.