Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown position shifted if body height is set to 100% #955

Closed
imkremen opened this issue Nov 16, 2018 · 3 comments
Closed

Dropdown position shifted if body height is set to 100% #955

imkremen opened this issue Nov 16, 2018 · 3 comments

Comments

@imkremen
Copy link
Contributor

imkremen commented Nov 16, 2018

Describe the bug
If html and body height is set to 100% dropdown position is shifted

Reproducbile example
https://ng-select-xqgl9y.stackblitz.io/

Expected behavior
The position and width of the dropdown should be correct.

Desktop (please complete the following information):

  • OS: Window 10
  • Browser Chrome
  • Version 70

Additional context
Adding position: relative to body doesn't help.

imkremen pushed a commit to imkremen/ng-select that referenced this issue Nov 20, 2018
@imkremen
Copy link
Contributor Author

This is due to the scrollbar on the body, caused when calculating the dropdown position.

@SaberOuarezzamen
Copy link

Hi, I'm having the same issue.
I've added position: relative to body but still not working.
Is there any update about this issue ?

@imkremen
Copy link
Contributor Author

imkremen commented Dec 3, 2018

@SaberOuarezzamen my pull request still not approved

anjmao pushed a commit that referenced this issue Dec 18, 2018
NickMele pushed a commit to NickMele/ng-select that referenced this issue Apr 12, 2019
varnastadeus added a commit that referenced this issue Jun 25, 2019
* fix: don't fire scroll to end when scrollTop = 0
fixes #1018

* feat: adjust dropdown position on selection when multiple and appendTo
closes #984

closes #899

closes #890

closes #1018

closes #1023

closes #1144

closes #1095

closes #1122

closes #1163

closes #955
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants