Comments (3)
Usually I check if the "current item" is the last item in the menu. It's a silly solution, but usaually works.
Other way, you need to calculate if the submenu is out of the viewport to add/change the submenu class to show it at the right.
...
Bsnav is conceived as an html/css menu.
We add the small javascript for some additional features that can't be added without it.
We're not able to add the functionality you need, but when you solve it, feel free to do a pull request to the repo for other users.
We appreciate your help to continue making great this menu.
from bsnav.
Please, check again the codepen, I write some javascript hoping to help you.
regards
from bsnav.
Thank you very much, I can't see any change in my codepen but I'll try to solve it by myself.
See you!
from bsnav.
Related Issues (12)
- side nav not opening on Button Click HOT 5
- Submenu fade HOT 1
- If submenu is out of viewport HOT 1
- Mega menu not working on mobile view port HOT 2
- submenu dropdown not working IE 11 HOT 1
- You just broke the jquery dependency HOT 4
- Scroll Spy Doesn't work on mobile. Also the demo code doesn't HOT 1
- Submenu dropdown's class: .nav-item.dropdown>.navbar-nav.in HOT 1
- breakpoints HOT 1
- sidebar-problems
- Repo is very large for a navbar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsnav.