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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:45

Script should detect the width of the longest menu entry


Poster: Marc-Andre.Roberge __at__ mus.ul
Dated: Monday February 11 2002 - 15:08:52 GMT

I am currently testing version 3.2.0 and would like to see the following feature added to a next release. Instead of having to find the width in pixels of the longest entry in any given menu or submenu by trial and error and hardcoding it in the script, it would be nice if the script did the job for us, i.e., if it determined how wide the drop-down panel should be, including an appropriate padding on the right. This would make creating and modifying menus much easier. Or is there a formula I can use to determine the width in pixels on the basis of the number of characters?

Re: Script should detect the width of the longest menu entry


Poster: goldmann __at__ aktiv.de
Dated: Tuesday April 2 2002 - 16:31:38 BST

the menu DOES make the width match the longest menu entry, despite what you set the width it will expand to accomodate a larger entry. I'm not sure why you are asking for something it already does... just leave the width blank and it will scale to fit.
cheers,
Yadin

Re: Script should detect the width of the longest menu entry


Poster: jack __at__ netcot.com
Dated: Tuesday April 2 2002 - 18:40:37 BST

Yadin -

Then something's fishy somewhere. When I remove the width spec the menu does adjust, but does not take into account the arrow, as the arrow graphic winds up on top of the last character of the widest menu item.

John

longest menu entry


Poster: Yellowg
Dated: Sunday June 9 2002 - 8:25:54 BST

I just add two nbsp's and I'm fine.

Hope it works for you


Poster: John
Dated: Monday June 10 2002 - 14:58:48 BST

You mentioned 3.2.0. 3.4.08 is current. Why not catch up and take advantage of all the bug fixes and new features Andy has worked on?