[jQuery] Superfish customization: change display height of submenu
Hi All,
I am new to jQuery & Superfish, but it seemd like the most logical way
to do a quick prototype for a menusystem. I am trying to create a
verertical menu system (using superfish-vertical). However, I'd like
to tweak the behaviour of the submenu, and have been unsuccessful so
far. Here's what the current solution does (straight out of the box) -
assume menu item 3 is hovered over:
menu item 1 >
menu item 2 >
[ menu item 3 > ] menu item 3.1
menu item 4 > menu item 3.2
menu item 5 > menu item 3.3
menu item 6 > menu item 3.4
menu item 3.5
menu item 3.6
Normal, expected behaviour. But I would like to use this type of menu
in a vertically restricted area, and therefore try to place the
submenu in such a way that it still fits. I am aware of many
restictions that apply when I go about this (submenu can never be more
items than the main menu, for instance), but let's assume I can
control that.
So, I would like the submenu to take into accoutn the height of the
available space. Two examples, for menu item 3 & menu item 6:
menu item 1 > menu item 3.1
menu item 2 > menu item 3.2
[ menu item 3 > ] menu item 3.3
menu item 4 > menu item 3.4
menu item 5 > menu item 3.5
menu item 6 > menu item 3.6
menu item 1 >
menu item 2 >
menu item 3 > menu item 6.1
menu item 4 > menu item 6.2
menu item 5 > menu item 6.3
[ menu item 6 > ] menu item 6.4
Is this possible? I cannot find the code that determines the top of
the new div that is being displayed (probably due to my newness to
jQuery & Superfish). But any pointers would be greatly appreciated!
Thanks in advance,
Jacco