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

navi bootstrap collapse not working #48

Open
nelstar opened this issue May 10, 2016 · 2 comments
Open

navi bootstrap collapse not working #48

nelstar opened this issue May 10, 2016 · 2 comments

Comments

@nelstar
Copy link

nelstar commented May 10, 2016

great plugin!! thanks so much, it works very well, but I'm having an issue when the navigation turns into a collapsed one- the navigation changes where I want it to- but when I click on the symbol it doesn't open the collapsed menu.
The bootstrap menu works fine when I deactivate midnight.js but is it possible that there's an overflow or height issue?

@nelstar
Copy link
Author

nelstar commented May 10, 2016

I figured out that it shows the collapsed navi by .navbar-collapse.collapse { display: block!important; } but then it's automatically collapsed. When I define the $('.fixed').midnight(); and give my .fixed class a condition it overrides the midnight plugin... any ideas?!

@xclntdesign
Copy link

Change the data-toggle from an id "#target" to a class ".target" and that should fix it.

When Midnight is run, multiple instances of the ID are created, one for each different midnight section. Bootstrap can't target the proper ID.

The only problem this creates is that because Midnight creates a fixed height, you get unsightly scrollbars. Need a way to run the recalculate function of Midnight with the shown.bs.collapse and hidden.bs.collapse events from Bootstrap.

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