Mega Menu submenu flows off screen

edited March 2016 in Menu / Mega menu
Good day interwebs.

I am having an issue with the Mega Menu. I am using the left sidebar menu option, and the sub-menus of the buttons closest to the bottom of the menu flow off the screen, i.e. half of it isn't on the screen. Is there any code that can force submenus to flow upwards instead of down? I'm thinking maybe I can target the bottom buttons directly to switch their submenus around.

Thanks in advance!

EDIT: I have fixed the issue by applying "top: -100px;" (example amount) to the list element of the submenu to move it upwards by the desired amount to create the illusion that it is fixed by the bottom. I saw that each of my submenu's cells were 52px high, so I multiplied that by the amount of cells in the submenu, and then subtracted the height of one of the main menu's cells to calculate the amount that I needed to move the submenu.

For example, the main menu cell's height is 49px, and the sub-menu cell's height is 52px. There are seven cells in the submenu. Thus (52 x 7) - 49. Yay!

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.