Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Re: Window padding / preventing submenus from entering within particular distances from window edges

Home Forums Older releases 0.9.x Window padding / preventing submenus from entering within particular distances from window edges Re: Window padding / preventing submenus from entering within particular distances from window edges

#1600
admin
Keymaster

There is really no very simple way to fulfill such specific positioning requirements for the sub menus. Basically, you would need to use the API and test the current sub menu’s position and dimensions against the page elements you like and re-position it if needed. You can find a code sample for a similar request from another user here:

http://www.smartmenus.org/forums/topic/2nd-level-within-parent-container-borders

Also note that the vertical scrolling for long sub menus can only work within the browser viewport (since the UL elements are truly nested in the parent LI’s and we cannot use CSS clipping because we would cut further sub levels.) So you cannot make that feature work for a specific container on the page instead of the whole viewport.

Hopefully, that helps.