• Hi, I like this plugin but I have one problem. When I open multiple submenu there is the possibility that part of the submenu go out of the screen (mainly out of the botto of the screen), I would like to open the submenu right-up insted of right-down when the menu go out from the bottom part of the screen. How can I do?

    Thanks
    Giorgio

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Giorgio,

    I think the closest you can get is to do this:

    https://www.megamenu.com/documentation/flyout-menu-vertical-align/

    Reducing the height of each item in the flyout menu will also help, I think.

    Regards,
    Tom

    Thread Starter giorgio94

    (@giorgio94)

    There isn’t the possibility to decide whether to see the sub-menu at the top or bottom depending on the position in the menu. If there is enough space on the screen it’s good to open in the bottom otherwise I would like to open on the top.

    My idea is like this, but I can’t override your js file (https://jsfiddle.net/3s2efe9u/), if you click on the Test button when there is space on the bottom of the screen the menu open on the bottom, otherwise it open on the top.

    • This reply was modified 6 years, 11 months ago by giorgio94.
    Plugin Author megamenu

    (@megamenu)

    Hi giorgio,

    There isn’t the possibility to decide whether to see the sub-menu at the top or bottom depending on the position in the menu.

    That is correct.

    Your menu is stuck to the top of the page, so there will never be any space above it (?)

    You can’t override the core JavaScript, but you could write your own JavaScript (in a different file) that applies it’s own JavaScript to the menu. E.g. you could detect the position of the menu, add a class to it depending on it’s position, then use some CSS (based on the class you’ve added) to modify how the sub menus are displayed. That would be quite tricky to do, but possible I think (it’s not the sort of thing we help with through support though, sorry).

    Regards,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dropdown dropup sub-menu’ is closed to new replies.