PDA

View Full Version : Position flex level drop down sub menu at the bottom of the available area if needed



shlomi
04-01-2010, 09:53 PM
1) Script Title:
Flex Level Drop Down Menu v1.1

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/flexdropdown.htm

3) Problem description:
When a sub menu position and height not allow it to open down within the available visible area of the screen, the menu automatically open it toward the other direction, up.
In my case opening the submenu towards up causes the upper part of this sub menu to be positioned out of the screen. How can I change the position mechanism in the following way?
When a sub menu position and height not allow it to open down within the available visible area of the screen I want it to still open to the same direction (down), but to be positioned in a way that the bottom of the submenu is located ~20px from the bottom of the available area.

Thanks,
Shlomi