Fork me on GitHub

DHTML/JS guru 2 help w/ DynaMenu horiz submenu align glitch  Bottom

  • Hi all, I am the developer of a Postnuke block called Dynamenu which is an alternative to the default menu block and generates a variety of drop-down/fly-out/tree-style menus.

    I am looking for help or advice to try to fix an annoying glitch pertaining to the horizontal submenu alignment which has plagued me since DM's inception.

    The symptom of the problem is this:
    In the horizontal drop-down style only, on a new page load, when the *very-first* Dynamenu item you hover over has submenus - the submenu initially appears all the way to the left on the screen (albiet on the correct vertical axis).

    When the user subsequently hovers over any other DM main menu item, the submenus will right themselves and behave normally until the next page load. The effect can be seen quite regularly at this PN site with DM: http://www.cleanpowernow.org/

    To clarify the conditions of the problem: the *very first* menu item you hover over has to have a submenus to see the problem. If you hover over the "home" link (which has no submenu), then another main menu item w/submenus, you will not see the problem.

    Dynamenu's "magic" is provided mostly by an open-source library called "PHP Layers Menu" by Marco Pratesi (see: http://phplayersmenu.sourceforge.net/ ) I cannot get the same glitch when using his static page examples, so I can only assume it has something to do with its interaction with Postnuke or the theme (or the way its being placed/rendered therein).

    Additional background:
    - The "problem" seems to be more consistent in some themes than others
    - Only affects the horizontal drop-down menu style
    - The PHPLM library is somewhat "finicky" with respect to where the menu "footer" information is output (needs to appear *just before* the closing tag - otherwise, *other* alignment problems may manifest themselves in other browsers) The above example has correctly placed menu footer info.
    - I have made no significant changes to the code, except in one of the JS libraries to check if an object exists before trying to alter it.

    If there's any other use info I can provide, be sure to let me know. The DM download is available @ http://www.natewelch.com/postnuke/

    Thanks in advance to anyone who can provide some insight as to what is causing (or how to fix) this lil' glitch!

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...

This list is based on users active over the last 60 minutes.