Script should detect the width of the longest menu entry
-
- Super Advanced
- Posts: 47
- Joined: Sun May 19, 2002 7:23 pm
- Location: Québec, QC, Canada
- Contact:
Script should detect the width of the longest menu entry
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?
-
- Beginner
- Posts: 2
- Joined: Sun May 19, 2002 7:24 pm
Re: Script should detect the width of the longest menu entry
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
cheers,
Yadin
-
- Beginner
- Posts: 9
- Joined: Sun May 19, 2002 7:24 pm
Re: Script should detect the width of the longest menu entry
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
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
I just add two nbsp's and I'm fine.
Hope it works for you
Hope it works for you