mdbootstrap / bootstrap-hover-dropdown

An unofficial Bootstrap plugin to enable Bootstrap dropdowns to activate on hover and provide a nice user experience.
http://cameronspear.com/demos/bootstrap-hover-dropdown/
MIT License
1.26k stars 503 forks source link

Submenu doesn't position itself correct when lacking space to right #121

Closed Magnusson435 closed 9 years ago

Magnusson435 commented 9 years ago

It seems that the hover code removes the ability for submenus to position them correctly if space is lacking to the right. I've attached 2 images:

1st image (no hover code) - Submenu positions itself correctly to the left when lacking space to the right no-hover

2nd image (hover code) - Submenu remains to the right when lacking space to the right hover

You can see it in action here: http://www.vaccinationsgruppen.se/

Have I done something wrong or is it a bug in the code?

CWSpear commented 9 years ago

What version of bootstrap are you using? What version of bootstrap-hover-dropdown are you using? bootstrap 3.0 (and thus the latest version of bootstrap-hover-dropdown) don't support sub menus.

Magnusson435 commented 9 years ago

What version of bootstrap are you using? 3.0.0 with some tweak for the submenus to work.

What version of bootstrap-hover-dropdown are you using? Version: v2.1.3

I see! Too bad, maybe implement it for backward compatibility?

Great work btw!

CWSpear commented 9 years ago

Not at this time, sorry. Especially for "tweaks for the submenus to work." Feel free to tweak this code as well to try and get it working.

Good luck!