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

Navbar item with dropdown receives scrollbar when manipulated #11969

Closed
dugajean opened this issue Dec 22, 2013 · 6 comments
Closed

Navbar item with dropdown receives scrollbar when manipulated #11969

dugajean opened this issue Dec 22, 2013 · 6 comments
Labels

Comments

@dugajean
Copy link

I came across a situation where the navbar becomes quite weird. I have a menu item on the far right of the bar which is a dropdown menu item. My menu item is a "cog" glyphicon, but when this gets viewed in smaller resolutions, the glyphicon by itself looks quite weird, so I went ahead and tried to add some text if the navbar is being viewed by extra-small devices.

Using "visible-xs" wouldn't work for some reason as it put my text on its own line, so I tried manipulating the text with my own media queries and jQuery; This is when I noticed the weird behavior of the navbar.

This is the jQuery I've used to manipulate my navbar list item:
https://gist.github.com/DEATHMETALGORE/8077356

And this is how it looks like after I smaller then increase the browser size:

Normal:
image

Extra Small:
image

After re-increasing:
image

I'm assuming this comes from Bootstrap's behalf. I've used jQuery as the last alternative and I've tried using CSS media queries before going for jQuery -- same result.

@cvrebert
Copy link
Collaborator

.visible-xs sets display: block when the element is meant to be visible, hence why it put your text on a separate line; see #8869.

@cvrebert
Copy link
Collaborator

So, to clarify, the scrollbar even happens without your custom JS?

@dugajean
Copy link
Author

Correct.

@cvrebert
Copy link
Collaborator

Please make the example into a JS Fiddle or JS Bin.

@mdo
Copy link
Member

mdo commented Dec 23, 2013

@DEATHMETALGORE You using v3.0.3?

@mdo
Copy link
Member

mdo commented Dec 24, 2013

I believe this is a dupe, so closing out until we hear otherwise since this sounds like the exact bug we fixed recently.

@mdo mdo closed this as completed Dec 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants