Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ann on Mar 30, 2009 06:17
open dhtmlx forum
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
Answer posted by Alex (support) on Mar 30, 2009 07:23

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.


Answer posted by Ann on Mar 30, 2009 07:36
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
Answer posted by Alex (support) on Mar 30, 2009 07:46

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. 

Attachments (1)
menu.zip40.68 Kb
Answer posted by Ann on Mar 30, 2009 08:00
Thank you!

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