Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jmr on Dec 17, 2007 23:55
open dhtmlx forum
dhtmlXMenu not showing properly on small pages

Hi,

I have a menu bar with sub-menus. When opening a menu, it does not show under the parent menu if the html page has few informations. It does show OK on big pages.

e.g: if the page is big:
|Main Menu|
|Sub1|
|Sub2|
|Sub3|

if the page is small

|Main Menu| |Sub1|
|Sub2|
|Sub3|

Is there something to do to fix this problem ?
Thanks
Jean-Michel
Answer posted by Support on Dec 18, 2007 02:25
Menu has auto-positioning functionality, so if page is too small it automatically change sub-menu position - it works fine in most cases, but sometimes when page has no other content it cause problem as in your case.

To disable auto-positioning, just add next line to menu initialization
    menu.disableSmartPositioning(true);