Closed (won't fix)
Project:
Nice Menus
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2008 at 09:16 UTC
Updated:
19 Sep 2012 at 10:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
jrabeemer commentedExpand your viewing area with DIVs if you have room. Otherwise, there's no way around that, unless somebody codes some JS logic to handle menus that are at the viewport edge.
Comment #2
Frank Steiner commentedI don't understand exactly what you mean by expanding the viewing area with DIVs? The menu must be placed at the right edge of the page, so if it expands to the right, it moves out of the screen. So I guess I have no room there...
Comment #3
Frank Steiner commentedI hacked myself through the css code and figured out it didn't need much change to make the horizontal menu expand its submenues to the left.
So I wrote a little patch that adds a new "down-left" style option to the nice_menus module.
Let me know what you think about it!
Comment #4
Frank Steiner commentedDoh, I forgot that it isn't enough to move the submenues to the left. Of course the first drop down (below the top items) must be justified at the right border of the top item, not the left border. Otherwise submenus will unfold to the left correctly, but the menu items itself might move out of the screen on the right side.
So here's the second try.
Comment #5
add1sun commentedAll new features in 6.x-2.x.
Comment #6
add1sun commentedHonesty I'm not sure if there is enough need to actually add this as an option within NM itself. I think documentation the CSS overrides in the handbook are sufficient. I am trying to not clutter up the direction selection with lots of options since each one we add will confuse users.
Moving to docs component.
Comment #7
add1sun commentedComment #8
Frank Steiner commentedThe only problem I have without a patch is getting both down menues at the same time, i.e. one down-menu that expands to the right (for items at the left border) and one that expands to the left (for items at the right border).
But I guess that's sth. very specific to our site.
I will make a addon-css file (i.e. no patching) for changing the down style to down-left and post it here as example.
Comment #9
Frank Steiner commentedOk, this css code added to your own css file (or appended to nice_menus_default.css) will change the default down menu to a down-left menu for anyone needing this :-)
Comment #10
add1sun commentedComment #11
clashar commentedFrank Steiner, thank you for the CSS.
I have a little problem with it that if there are more than one parent, then arrow shows only on first parent and not on second, third, etc.
Could you please say if it's possible to solve.