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.

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1329
    CCharabaruk
    Participant

    Is there a way that SmartMenus could be changed to further limit what space is available for submenus beyond just that of the browser viewport? I need to prevent the submenus from covering the main nav menu and fixed page footer at any time. I’ve tried some changes to the math in menuPosition but without any luck, and I’m not even sure how those changes should have affected things.

    #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.

    #1601
    CCharabaruk
    Participant

    Thanks, I had figured as such, but I’m sure you know how clients can be. They’ll just have to accept this or complain to the W3C for more overflow options in CSS.

    #1603
    admin
    Keymaster

    … or complain to the W3C for more overflow options in CSS.

    LOL, right!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.