IE Horizontal Scroll Bar Problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

IE Horizontal Scroll Bar Problem

Post by cpriest »

Hello all,

I just purchased the DHTML Menu, using the latest version and I'm having a problem with the horizontal scroll bar for the main window.

The main web page scroll bar is showing and is wider than it should be. I have nothing on the page except for the menu system...

What am I doing wrong?

Sample Page: http://www.EyeoftheArt.com/page.header.php
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

With all due respect, the first thing you have to do is learn how to code an HTML page correctly. What you posted has tags out of place, tags missing, JS calls out of place, and numerous other things that are beyond the scope of this Forum. We are definitely here to help, but not to teach proper basic coding.

Get a book on HTML, clean up the page, and we'll be more than happy to help you with the menu.

Just to be sure, this is not written in any way to be nasty, but we can't help, nor will the menu work, with what you've got.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

This problem has been fixed for version 5.47 due out later today.

I'll let you know once it has been released.

Regards
Andy
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

Hey John,

I'm not really sure what you're talking about, I've been coding HTML for about 10 years and I see nothing wrong with the HTML in this page, what do you find to be a problem?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Version 5.47 has just gone up.

Cheers
Andy
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

Hey the fix works great, there is another issue I just noticed with the new version though (may have been in the old version).

If you make the window wider and smaller over and over the menu's width keeps shrinking until it is a small as it can go to fit all of the text.

Not a huge issue I don't expect users to do this but just so you know...
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

cpriest wrote:I'm not really sure what you're talking about, I've been coding HTML for about 10 years and I see nothing wrong with the HTML in this page, what do you find to be a problem?
Hi -

Actually, more than one of us noticed problems; e.g., no <html></html>, <body></body>. There were other items we noticed last night which do not appear to be there now.
John
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

I see, that would be because this is a page header and meant to be included in other more complete pages.

Normally this page does not include the <HEAD> information either, I included that only so that viewing the page on its own would show correctly.

At any rate, its all working fine now.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Got it.

We weren't trying to be a pain - just concerned... :)
John
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

Update... The Horizontal Scrollbar problem is back.

Its not on the original page, but it is on another page which includes now a second menu bar...

http://216.22.14.142/admin/admin.page.header.php

If you play with the menus a bit, you'll notice that atleast one of the menu's changes width and then the horizontal scroll bar disappears.

By the way, I must say... this is a great piece of programming, I'm very impressed with its capabilities..

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

Post by Andy »

Hi,

The scrollbars are back because of the way you have embedded the whole menu inside the table cell.

There is a technique for embedding menus in tables here: http://milonic.com/tablemenu.php

-- Andy
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

I see, so is the key problem here the fact that drawMenus() is creating the menu (layers?) within that table cell? So the sub-menu's need to be created outside of the table cell..?

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

Post by Andy »

That's absolutely spot on.

The sub menus become part of the table cell when they are built inside it. So the positioning is occasionally off due to the parent being the table cell and not the document, which is what you want.

There are also performance problems when placing all sub-menus inside the table cell. I've seen menus run painfully slow because of this.

-- Andy
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

It does run pretty slow when compared to before. I had < 1 second load times before, now its 3-5 seconds to load the whole page...

Do you have any tips for speeding things up?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Clint,

Once you get everything but the main menu out of the table, it should speed up quite a bit.

Cheers,

Kevin
cpriest
Advanced
Advanced
Posts: 17
Joined: Mon Sep 13, 2004 6:38 pm

Post by cpriest »

Everything but the main menu is out of the table....

Can I load the submenu's at the end of the page w/o a problem?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Should not be a problem. Just remember to call drawMenus() in both the table cell where the main menu is and at the end of your submenu defs.

Kevin
Post Reply