Problem with 5.7.48

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pscs
Advanced
Advanced
Posts: 15
Joined: Tue Sep 23, 2003 10:51 pm
Location: Huddersfield, UK

Problem with 5.7.48

Post by pscs »

While attempting to solve problems with tooltips I upgraded to 5.748 and found a couple of problems which weren't there with 5.747

The 'padding' area seems to apply twice - once around each menu item and once around the 'group' of menu items. (in 5.747 it was just around each menu item)

If I select the last item of a (vertical) menu, then the 'padding' area around the 'group' of menu items changes to the highlight colour, instead of the background colour.

(I've gone back to 5.747 for now)
Paul Smith
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Could you give a url or post your menu_data.js file so we can test and see what's up?

Ruth
pscs
Advanced
Advanced
Posts: 15
Joined: Tue Sep 23, 2003 10:51 pm
Location: Huddersfield, UK

Post by pscs »

I can't post a URL as it's in an application not a website.

Try the attached file which shows the same behaviour for me

Code: Select all

<html>
<head>
<SCRIPT language="JavaScript1.2" src="milonic_src.rjs" type="text/javascript"></SCRIPT>
<script language="JavaScript1.2" src="mmenudom.rjs" type="text/javascript"></script>

<script language='javascript1.2'>


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=50            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x
//horizontalMenuDelay=true
buildAfterLoad=true;


with(MainMenuStyle=new mm_style()){
opendelay=1000;
onbgcolor="#142f6b";
oncolor="yellow";
offbgcolor="#CCCCCC";
offcolor="#000000";
borderwidth=0;
separatorcolor="#CCCCCC";
separatorsize=5;
padding=5;
fontsize="12px";
fontstyle="normal";
fontfamily="Verdana, Geneva, Arial, Helvetica, sans-serif";
pagecolor="#000000";
pagebgcolor="#009966";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
}

with(PopMenuStyle=new mm_style()){
onbgcolor="#CCCCCC";
oncolor="#000000";
offbgcolor="#142f6b";
offcolor="#ffffff";
bordercolor="#CCCCCC";
borderwidth=2;
separatorsize=0;
padding=1;
fontsize="12px";
fontstyle="normal";
fontweight="normal";
fontfamily="Verdana, Geneva, Arial, Helvetica, sans-serif";
pagecolor="#000000";
pagebgcolor="#009966";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
}


with(milonic=new menuname("Main Menu")){
style=MainMenuStyle;
top=55;
left=0;
itemheight=30;
alwaysvisible=1;
orientation="horizontal";
position="absolute";
aI("text=Home;showmenu=test;");
}

with(milonic=new menuname("test")){
style=PopMenuStyle;
aI("text=test 1;url=testmenu.html?t=1;");
aI("text=Test 2;url=testmenu.html?t=2;");
}


drawMenus();

</script>

</head>
<body>
</body>
</html>
[/code]

(save this as 'testmenu.html')
Last edited by pscs on Mon Jun 12, 2006 5:19 pm, edited 1 time in total.
Paul Smith
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've made a report. It seems to be working as a margin instead of padding, so I've requested some help. I'll post back when I hear anything.

Ruth
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Which browser are you seeing this with? I really cannot see any difference between old versions and new.

What I am seeing is a 2 pixel grey border around the sub menu, this will be because of the borderwidth=2; other than that I don't see any problems?

Cheers,
Andy
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Andy,

If I understand the properties correctly, padding should put 'space' inside the item and margin should put it between the item and the menu border.

The easiest way to see what's happening is to add an offborder="1px solid #ff00ff"; to the PopMenuStyle and then change padding from 1 to 5 px. What happens is it adds padding to the item, but it also adds it between the item and the menu border as if a margin had also been added. I tried IE, FF, NN

Ruth
Post Reply