Title: Dropdown dropup sub-menu
Last modified: December 22, 2017

---

# Dropdown dropup sub-menu

 *  [giorgio94](https://wordpress.org/support/users/giorgio94/)
 * (@giorgio94)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/dropdown-dropup-sub-menu/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdropdown-dropup-sub-menu%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/dropdown-dropup-sub-menu/#post-9805973)
 * Hi Giorgio,
 * I think the closest you can get is to do this:
 * [https://www.megamenu.com/documentation/flyout-menu-vertical-align/](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](https://wordpress.org/support/users/giorgio94/)
 * (@giorgio94)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/dropdown-dropup-sub-menu/#post-9808146)
 * 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 ([http://jsfiddle.net/3s2efe9u/](http://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 8 years, 4 months ago by [giorgio94](https://wordpress.org/support/users/giorgio94/).
 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/dropdown-dropup-sub-menu/#post-9809366)
 * 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.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [megamenu](https://wordpress.org/support/users/megamenu/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/dropdown-dropup-sub-menu/#post-9809366)
 * Status: not resolved