twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.54k stars 78.85k forks source link

.collapse doesn't get removed after closing navigation #1860

Closed jamiebuilds closed 12 years ago

jamiebuilds commented 12 years ago

<div class="nav-collapse">...</div>

When it is first opened adds the classes collapse and in, when it is closed it removes in but not collapse, this is a problem when using dropdowns after the window has been resized for a larger display.

jamiebuilds commented 12 years ago

Fixed with CSS at bootstrap-reponsive.css:Line 381

@media all and (max-width: 980px) { .nav-collapse.collapse { overflow: hidden !important } } @media (min-width: 980px) { .nav-collapse.collapse { height: auto !important; overflow: visible !important } }

jamiebuilds commented 12 years ago

This still should be fixed in javascript

fat commented 12 years ago

this is a duplicate thanks!