setOverflowHeight menu

Hello,



I have an error using “setOverflowHeight()” with new versions of Firefox (3.0.7).



The method setOverflowHeight doens’t work, and it shows all the items in a sub-level polygon.



Thank you


Hello,


The method should be called after adding all items. For example:


menu.loadXML(“dhtmlxmenu.xml”, function(){


menu.setOverflowHeight(4);

});


If problem persists, please, provide the complete demo to reproduce the issue.



I did it like this:

 var menu = new dhtmlXMenuObject(“menuObj”, “clear_green”);
 
    // setting path for common images
    menu.setImagePath(“includes/menu/imgs/”);
    // initializing with script
     menu.loadXML(“getMenu.jsp”,function () {
         menu.setOverflowHeight(8);
     });

and it works with IE and older versions of Firefox, but not with Firefox 3.0.7 and above, and I dont know which is the problem.

Thank you


Please, take a look at the attached sample - locally it works without any problems in all browsers.


If the issue still occurs, please provide the sample to reproduce the problem.


menu.zip (39.7 KB)

Thank you!

Now it is working,  I had an old version of this file: dhtmlxmenu.js