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 in navbar fixed-top is not scrollable #28575

Closed
zwantE opened this issue Mar 29, 2019 · 4 comments
Closed

Dropdown in navbar fixed-top is not scrollable #28575

zwantE opened this issue Mar 29, 2019 · 4 comments

Comments

@zwantE
Copy link

zwantE commented Mar 29, 2019

i use a bootstrap 4 navbar-fixed-top with a dropdown inside and when the drobdown is higher as the page, the dropdown-content is not scrollable.

I create a demo with original bootstrap files without any changes, and there is the same problem :/

take a look in this demo...

how can i solve the problem? its really sad

https://jsbin.com/sitozuzayu/edit?html,output

w10 x64 chrome 73.0.3683.86

@herbalite
Copy link

You could add a css rule to the document:

div[aria-labelledby="navbarDropdown"] {
  overflow-y: auto;
  height: 1000%;
}

@zwantE
Copy link
Author

zwantE commented Apr 1, 2019

dont work with collapsed navbar :/

@herbalite
Copy link

herbalite commented Apr 1, 2019

hmm, when I worked this out with your JS-Bin I forgot to mention something else. Sorry about that. If you still have issues, I've added those styles directly to the div element with the id="navbarDropdown" with style="overflow-y: ..."

Try to fix issues like these, it's always important to check the height of the area you want to modify, ensure that it overflows and the method of positioning.

div[aria-labelledby="navbarDropdown"] {
  overflow-y: auto;
  height: 1000%;
  position: absolute !important;
}

@ysds
Copy link
Member

ysds commented May 17, 2019

Duplicate of #23374

@ysds ysds marked this as a duplicate of #23374 May 17, 2019
@ysds ysds closed this as completed May 17, 2019
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

3 participants