Nav DropDown Problem
When you click on the triple horizontal lines to un-collapse the topbar then go back to a full size window and try to open a dropdown, the dropdown no longer opens.
To see the issue occur in jsfiddle, you will probably need two monitors, because it does not got from the mobile nav to the desktop nav.
http://jsfiddle.net/mzYsq/
References #1686
Can you test this and see if it works for you?
https://github.com/twitter/bootstrap/pull/1686#issuecomment-3806683
@mindctrl this does fix the issue. When removing line 77 I am not able to cause it to break anymore. Just to verify I wonder if this would affect any other functionality with the collapse feature, such as this example on bootstrap's docs:
http://twitter.github.com/bootstrap/javascript.html#collapse
I have not tested it, but I will probably get the chance within the next hour, if you don't test it by then :P.
But I assume that if it doesn't break the collapse functionality anywhere else, then that's probably the fix :)
Yah, that broke the demo there. Back to the drawing board. :(
Yeah, I am taking a look at it now, it doesn't show any Javascript errors. I will let you know if I figure something out.
<div class="nav-collapse"> still has the class collapse on, even when you uncollapse the element, which causes the dropdown not to show. I am trying to figure out why collapse is not being removed in bootstrap-collapse.js file.
The problem is that the transition adds the class collapse back to the element, transition is called when you uncollapse an element. I am seeing if I can get a fix now.
Lines 87-89 in boostrap-collapse.js are:
this.$element
.trigger(startEvent)
[method]('in')
I added a line to make it this:
this.$element
.trigger(startEvent)
[method]('in')
[method]('collapse')
And then my CSS file I added
.collapse.in {
height:auto !important;
overflow: visible;
}
as suggested in another thread. Again, this works for the dropdown, but breaks the javascript demo. Thoughts?
I will try that and see what happens.
@mindctrl the problem with adding that in, is that it takes away the animation from both expand and collapse. I am looking to see if I can find a way to keep the animations as well as trying to figure out why the collapse class won't remove properly.
@mindctrl try this and let me know if it works for you
After line 84 add this:
that.$element
.trigger(startEvent)
[method]('collapse')
so it should look like this:
if (startEvent == 'show') that.reset()
that.$element.trigger(completeEvent)
that.$element
.trigger(startEvent)
[method]('collapse')
I will test the example on bootstrap docs and see if it works.
@mindctrl nope still breaks. hmm
@adetwiler using what you did and adding the following CSS to bootstrap.css seems to work all around.
.accordion-body {
overflow: hidden;
}
@mindctrl nice it seems to work great!
Is your collapse animation broken on the docs example?
Also, my open animation on the navbar button seems to be broken.
Recap:
Navbar: open animation broken, collapse animation working.
Docs example: open animation working, collapse animation broken.
It still works for me.
Hm, I am not seeing those issues with the two things we added.
Ok. I'll check my other CSS and/or test a fresh install.