Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:41

subMenu same width as parent


Poster: mtd_conseil
Dated: Tuesday February 20 2007 - 18:21:49 GMT

Hi,

Let's say I have a menu, inside a TD which take 100% of it, and it is horizontal. I don't know the number of item in it because it's dynamic. So I can't set an itemwidth. this part work fine, the menu sets itself correctly.

Now, I want to add subMenus, vertical, right under the parent menu. But I want the menu items to be the same width as their parent, even if the menu text goes on many lines.

Is there a way to say that the menu Item width is relative or something?

Because right now, it takes the width of the longest menu text or I have to set a itemwidth. But I don't know that width since the menu is dynamic.

Pretty hard this one. Can't find it.

I tried it on the basic DHTML Plain Text menu Sample when we download the menu. If that works, I can handle it. 8O


Thank you very much for your help. :lol:


Poster: Ruth
Dated: Tuesday February 20 2007 - 20:51:20 GMT

Hi,

Well, I won't be able to help on this but here is a post that might give you some direction.

Now, it is referring to a main menu and items in one frame and the subs in the other, but it does give information on getting and setting menu positions and other parameters, and on getting item references. It's kind of long...

http://www.milonic.com/forum/viewtopic.php?t=3632

Hope this helps.

Ruth


Poster: mtd_conseil
Dated: Friday February 23 2007 - 18:34:36 GMT

Hi,

I tried to understand what they were doing, but I don't see how this does the width of the parent item.

I'm sorry.


Poster: Ruth
Dated: Friday February 23 2007 - 19:00:17 GMT

Hi,

Well, I'm in the same boat since I don't know js. I was just hoping that something in there with regard to getting menu dimensions and finding item numbers and that global _ItemRef could point in the right direction.

I think you will have to contact Milonic directly to get an answer to this.

Ruth


Poster: mtd_conseil
Dated: Friday February 23 2007 - 19:04:11 GMT

I guess so! :)

Thank you very much Ruth.