itemwidth menu item property, IE MacOSX 5.2
itemwidth menu item property, IE MacOSX 5.2
==> update 2. an effective work around to the IE MacOSX itemwidth situation delineated below:
* drop padding property from main menu style definition: ensures that padding is not a factor in itemwidth
* reposition submenus to compensate for loss of offset, w/out padding
simple, works fine, as long as you can do without padding in the style definition for main menu.
==> update. Initial analysis in the report below was incorrect; the problem is apparently not that IE MacOSX doesn't "work" with itemwidth property but that the browser displays itemwidth differently.
Horizontal display offset of the menu in IE OSX is 108px (less, total) in a seven-item menu, as compared with other browsers tested. 108 px just happens to = 6 * (2 *9), which represents the total horizontal padding for all menu items.
In the menu in question, it initially appeared as if itemwidth was simply not operating; but setting itemwidth values much higher --where I could visually note that the property was effective-- led me to conclude that IE was likely just representing display values differently. Is IE OSX including padding as part of itemwidth total? Seems like i've seen that behavior elsewhere: for example, in positioning of horizontally floated DIVs with padding.
Is there another way to address IE OSX's apparently eccentric behavior, in use of the itemwidth property? Probaby could drop padding property and compensate for the corresponding, changed vertical positions of drop-down menus ...
---
fwiw, here's the simple style and menu:
with(menuStyle=new mm_style()){
oncolor="#F26118";
offcolor="#505050";
padding=9;
fontsize="10px";
fontfamily="Verdana, Arial, sans-serif";
}
with(milonic=new menuname("Main")){
style=menuStyle;
top=63;
left=27;
alwaysvisible=1;
orientation="horizontal";
aI("text=Beginning;showmenu=Beginning;itemwidth=80;");
aI("text=Intermediate-A;showmenu=Intermediate-A;itemwidth=110;");
aI("text=Intermediate-B;showmenu=Intermediate-B;itemwidth=110;");
aI("text=Advanced-A;showmenu=Advanced-A;itemwidth=90;");
aI("text=Advanced-B;showmenu=Advanced-B;itemwidth=95;");
aI("text=Superior;showmenu=Superior;itemwidth=75;");
aI("text=Site Index;url=#;itemwidth=100;");
}
============ original message follows ============
Have need for specific item widths in major menu headings in a horizontal menu.
Refer to related discussions in
http://milonic.com/pipermail/miloni ... 02013.html
.. and item property descriptions in
http://milonic.com/itemproperties.php
"itemwidth" property works fine in major browsers tested .. except IE 5.2, MacOSX. Unfortunately, it's one of the target browsers.
Only useable workaround is seemingly to append menu item text with mutiple (see discussion above) to fill out space -- an inexact solution.
Any other workarounds or fixes? Thanks.
* drop padding property from main menu style definition: ensures that padding is not a factor in itemwidth
* reposition submenus to compensate for loss of offset, w/out padding
simple, works fine, as long as you can do without padding in the style definition for main menu.
==> update. Initial analysis in the report below was incorrect; the problem is apparently not that IE MacOSX doesn't "work" with itemwidth property but that the browser displays itemwidth differently.
Horizontal display offset of the menu in IE OSX is 108px (less, total) in a seven-item menu, as compared with other browsers tested. 108 px just happens to = 6 * (2 *9), which represents the total horizontal padding for all menu items.
In the menu in question, it initially appeared as if itemwidth was simply not operating; but setting itemwidth values much higher --where I could visually note that the property was effective-- led me to conclude that IE was likely just representing display values differently. Is IE OSX including padding as part of itemwidth total? Seems like i've seen that behavior elsewhere: for example, in positioning of horizontally floated DIVs with padding.
Is there another way to address IE OSX's apparently eccentric behavior, in use of the itemwidth property? Probaby could drop padding property and compensate for the corresponding, changed vertical positions of drop-down menus ...
---
fwiw, here's the simple style and menu:
with(menuStyle=new mm_style()){
oncolor="#F26118";
offcolor="#505050";
padding=9;
fontsize="10px";
fontfamily="Verdana, Arial, sans-serif";
}
with(milonic=new menuname("Main")){
style=menuStyle;
top=63;
left=27;
alwaysvisible=1;
orientation="horizontal";
aI("text=Beginning;showmenu=Beginning;itemwidth=80;");
aI("text=Intermediate-A;showmenu=Intermediate-A;itemwidth=110;");
aI("text=Intermediate-B;showmenu=Intermediate-B;itemwidth=110;");
aI("text=Advanced-A;showmenu=Advanced-A;itemwidth=90;");
aI("text=Advanced-B;showmenu=Advanced-B;itemwidth=95;");
aI("text=Superior;showmenu=Superior;itemwidth=75;");
aI("text=Site Index;url=#;itemwidth=100;");
}
============ original message follows ============
Have need for specific item widths in major menu headings in a horizontal menu.
Refer to related discussions in
http://milonic.com/pipermail/miloni ... 02013.html
.. and item property descriptions in
http://milonic.com/itemproperties.php
"itemwidth" property works fine in major browsers tested .. except IE 5.2, MacOSX. Unfortunately, it's one of the target browsers.
Only useable workaround is seemingly to append menu item text with mutiple (see discussion above) to fill out space -- an inexact solution.
Any other workarounds or fixes? Thanks.
Last edited by rangerted on Mon Sep 29, 2003 6:51 am, edited 4 times in total.
In the menu item(s) themseleves; each has a different itemwidth:Hergio wrote:Are you specifying itemwidth in the style or in the menu item itself? Try it in either and/or both.
with(milonic=new menuname("Main")){
style=menuStyle;
top=63;
left=27;
alwaysvisible=1;
orientation="horizontal";
aI("text=Beginning;showmenu=Beginning;itemwidth=80;");
aI("text=Intermediate-A;showmenu=Intermediate-A;itemwidth=110;");
aI("text=Intermediate-B;showmenu=Intermediate-B;itemwidth=110;");
aI("text=Advanced-A;showmenu=Advanced-A;itemwidth=90;");
aI("text=Advanced-B;showmenu=Advanced-B;itemwidth=95;");
aI("text=Superior;showmenu=Superior;itemwidth=75;");
aI("text=Site Index;url=#;itemwidth=100;");
}
Wouldn't work as property in the style definition, at least in tests. Not sure how that work, anyway, since each item has a different value ..
Reasonable question .. which i restrained myself from addressing in previous post.jgillett wrote:Just curious, but given there is to be no further development or releases on IE/X, and Safari is fast taking over that market, why is it a target browser?
It's a legacy issue in this particular corner of the world - users with MacOS 9/habitual IE usage in OSX. Personally, I'd be happy to ignore IE, but it's not going to go away completely around here (wild guess) for a year or so.
Understood, and, unfortunately, you're probably correct...rangerted wrote:Reasonable question .. which i restrained myself from addressing in previous post.
It's a legacy issue in this particular corner of the world - users with MacOS 9/habitual IE usage in OSX. Personally, I'd be happy to ignore IE, but it's not going to go away completely around here (wild guess) for a year or so.

John
-
- Super Advanced
- Posts: 47
- Joined: Sun May 19, 2002 7:23 pm
- Location: Québec, QC, Canada
- Contact:
I am wondering whether this topic has something to do with mine <http://www.milonic.co.uk/forum/viewtopi ... 7fdae5d2e6>, posted earlier today. Curiously, this user passes "100" as a parameter to "idemwidth"; it was suggested that I use "100%". Could this be a part of the problem? Just in case it is important, I am using IE 6.00.2800.1106.
-
- Super Advanced
- Posts: 47
- Joined: Sun May 19, 2002 7:23 pm
- Location: Québec, QC, Canada
- Contact:
Yeah I havent seen it yet, but doesnt it extend almost to the edge of the screen? I am referring to the 100% tweak.
Oh and BTW, putting the itemwidth in the style would be an easy way to get all your menu items to be the same width. Just FYI.
Oh and BTW, putting the itemwidth in the style would be an easy way to get all your menu items to be the same width. Just FYI.
Dave Hergert
Software Engineer
"Helping to make the menu better, one
at a time."
Software Engineer
"Helping to make the menu better, one

-
- Super Advanced
- Posts: 47
- Joined: Sun May 19, 2002 7:23 pm
- Location: Québec, QC, Canada
- Contact:
Just to make things clear, what I mean is that, up to RC9, using "itemwidth=100%" (see code below) in a supplementary main menu item caused the menu bar to extend to the very right edge of the screen, as you can see at <http://www.mus.ulaval.ca/roberge/gdrm/> (I am using RC9 on the public version). From RC11 onwards (or RC9, I cannot say), the menu bar stops at the end of the last menu item; in other words, the end of the menu bar is aligned with the right edge of the second square with small type.
Code: Select all
aI("text=;itemwidth=100%;onbgcolor=#cc9933;offbgcolor=#cc9933;oncursor=default");
-
- Super Advanced
- Posts: 47
- Joined: Sun May 19, 2002 7:23 pm
- Location: Québec, QC, Canada
- Contact:
The reason he doesnt want to move up to RC13 is because the feature he's looking for isn't working right in RC13...it only works in RC9. I am guessing he wants to wait until the most recent RC solves the itemwidth = 100% bug.
Whoa, almost to 1000 there John! I think we should put in a rank system to show off your brass!
Whoa, almost to 1000 there John! I think we should put in a rank system to show off your brass!
Dave Hergert
Software Engineer
"Helping to make the menu better, one
at a time."
Software Engineer
"Helping to make the menu better, one
