screenposition="center" adds a line of 1 to 2 px

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
4viggo
Super Advanced
Super Advanced
Posts: 56
Joined: Wed Jun 12, 2002 12:03 pm
Location: Norway

screenposition="center" adds a line of 1 to 2 px

Post by 4viggo »

Whenever i turn on screenposition="center"; the menu adds a line of 1 or 2 px underneath the menuitems and seperator bars.
I get this when playing with the Horizontal Navigation Bar sample.
Sorry but have not posted this code yet, so i 've got no URL at the moment.
I need to get version 5 to work for me before i can put it out there.
Here is the code for the test i'm doing:

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=50;
screenposition="center";
left="offset=-100";
followscroll="10,50,10";
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}

Is this a bug or?
P. S running ie 6.0 on XP

regards
4viggo
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

The only time I had that problem was when margin= was present.
I would try a height property next.

Regards
maz

note. my menu has an artificial 1px line under in a table element bgcolor, it was by accident but I liked the effect and left it in for now.
User avatar
4viggo
Super Advanced
Super Advanced
Posts: 56
Joined: Wed Jun 12, 2002 12:03 pm
Location: Norway

Post by 4viggo »

No margin present in the file. (it's not present in the style or the menu part)
I also played around with all the height and padding etc. properties i could find, but it still did'nt change anything.
If i remove the screenposition="center" it's all normal but as soosn as i add it back again the 2px line returns.
Any thoughts anyone??
gremlin
Beginner
Beginner
Posts: 7
Joined: Thu Sep 04, 2003 5:52 am

Post by gremlin »

I am having the same problem and I think I have narrowed it down to IE 6. I have viewed the menu properly in Mozilla and IE 5.5. Anyone see any differently? An example of mine can be seen at http://www.shorthills225.org/hrts Thanks for the help.
gremlin
Beginner
Beginner
Posts: 7
Joined: Thu Sep 04, 2003 5:52 am

Post by gremlin »

Does anyone have any information on this incompatibility or perhaps some workaround? Please see my link above to look at the situation I am talking about. I have recreated this error in IE6 on several pc's. If you can get the large bottom border to show up, try clicking on the forum link and moving your mouse cursor down while it loads the next page. The menu starts to wildly grow on its own!! (No I haven't been doing any substances....it really does happen). :-D
User avatar
4viggo
Super Advanced
Super Advanced
Posts: 56
Joined: Wed Jun 12, 2002 12:03 pm
Location: Norway

Post by 4viggo »

Same thing happens here, it must clearly be a bug??

Does anyone ( or Andy ) have clue as to what is happening?
User avatar
4viggo
Super Advanced
Super Advanced
Posts: 56
Joined: Wed Jun 12, 2002 12:03 pm
Location: Norway

Post by 4viggo »

Never mind it seems to be fixed in rc9 :P
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Gotta love progess. Every new RC is a good thing, and you asked so you shall receive!

gremlin, I think i see a problem. You have one style defined for all the menus. This style has a fade,alpha,and shadow overfilter on it. Your top most menu is static and shouldn't be appearing and disappearing so you dont need to apply a fade filter to it and I think this has caused problems in the past. Make a new style, roughly identical to your current style but remove the fade overfilter from it and make your top most menu use this new style...as it does not need fade and I think that causes problems.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
gremlin
Beginner
Beginner
Posts: 7
Joined: Thu Sep 04, 2003 5:52 am

Hergio is the man

Post by gremlin »

Thanks man. I removed all the filter definitions on a new style for the main menu, and now the issue no longer occurs. Can't thank you enough man. :)
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

hey no problem, man. Your welcome man! Glad I could help. :lol:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply