Major Problems with menuwidth="100%"

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
HeadlessZeke
Beginner
Beginner
Posts: 1
Joined: Mon Mar 22, 2004 7:26 pm

menuwidth problems on resize

Post by HeadlessZeke »

Hi,
I actually had the same problem with the menuwidth="100%" not responding to window resizes. I found a way (although probably not the best or only way) to work around it pretty easily. Just add onResize="window.history.go(0)" to the body tag of the page. That way, everytime the window is resized, it will refresh and this should include refreshing the size of the menu. Like I said, it probably isn't the best way to fix it, but it worked for me.

Hope this helps!
Zeke
halcyon
Advanced
Advanced
Posts: 22
Joined: Wed Oct 08, 2003 9:43 pm
Contact:

Post by halcyon »

Thanks for the idea Zeke, that would normally work except a huge chunk of our site is served up dynamically, in which case data on the screen could change and users could use information they were looking at simply by resizing the screen =(
-David
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

A couple of things to try. In your with(milonic=new menuname that's in the table, also put in itemwidth="100%" don't know why but it seems to be the solution for some of these "100%" menu issues. Also, you can determine the height of the menu or rather you can specify the height. Sometimes it works just putting it in the same place you have the menwidth="100%"; itemwiidth="100"; but I tend to code it into each item, just to be safe [then again, I'm a code idiot] but you can put in itemheight="20px"; or whatever you decide. Just remember that you need to keep in mind the padding which will apply to the top and bottom. I'm on a pc, it works on ie 5, ie 5.5, ns 6, 7, opera 7 and firebird .07.

Ruth
Post Reply