-
Notifications
You must be signed in to change notification settings - Fork 213
Automatic height #167
Comments
Hi, Overall menu height, if not set in options to some fixed value, will be set equal to the tallest menu height. For example try commenting out Regards |
Hi @adgsm, Thanks |
|
thanks for getting back. I tried this but it seems to return the same height whatever submenu I click into? |
You have to choose right selector ( |
For example
will return height of the (sub)menu containing clicked item. |
both using |
Each menu is contained within div element. Div element contains ul which
then contains li elements... using same jquery method you can mesaure
height of any of these elements, or maybe top offset if you like...
pon, 14. maj 2018. 02:13 Waleed Al-saady <[email protected]> je
napisao/la:
… both using
$menuLevelHolder = arguments[1];
$menuLevelHolder.height();
in onItemClick and onGroupClick, gives the same number as any data-level,
for some reason the height is all set to max.
The proper height of each submenu seems to be the ul tag inside each
div.levelHolderClass
I'm confused.. sorry
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFhKYyhwCeqhxcTqd69nE0wpJOvFS3Keks5tyMw2gaJpZM4LtOQL>
.
|
Hi
Is there a way to set an automatic height of the menu?
Let's say a sub-menu has more items then the parent, then the container adapts to his height.
Thanks!
The text was updated successfully, but these errors were encountered: