subMenu same width as parent

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
mtd_conseil
Advanced
Advanced
Posts: 27
Joined: Fri Jul 26, 2002 6:41 pm
Location: Quebec, Canada
Contact:

subMenu same width as parent

Post by mtd_conseil »

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:
Mike
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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...

viewtopic.php?t=3632

Hope this helps.

Ruth
User avatar
mtd_conseil
Advanced
Advanced
Posts: 27
Joined: Fri Jul 26, 2002 6:41 pm
Location: Quebec, Canada
Contact:

Post by mtd_conseil »

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.
Mike
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
mtd_conseil
Advanced
Advanced
Posts: 27
Joined: Fri Jul 26, 2002 6:41 pm
Location: Quebec, Canada
Contact:

Post by mtd_conseil »

I guess so! :)

Thank you very much Ruth.
Mike
Post Reply