Unwanted Horizontal Scrollbars
Unwanted Horizontal Scrollbars
I am putting new menus together in v5.0 I used the overflow="scroll" command so menus longer than the browser window will have a vertical scrollbar.
The problem is that whenever I have a vertical scrollbar appear, I also have a horizontal scrollbar appear on the menu as well. This occurs even though there is plenty of room for the width of the menu.
Any insight would be appreciated.
The problem is that whenever I have a vertical scrollbar appear, I also have a horizontal scrollbar appear on the menu as well. This occurs even though there is plenty of room for the width of the menu.
Any insight would be appreciated.
Scott
Sorry, that would help.
Here is the link. Make the window stretch the entire screen, but make height very short. Check out the menu Teams/MLB/American League for instance.
http://209.210.237.14:8080/spbaseball/o ... ile=notify
Here is the link. Make the window stretch the entire screen, but make height very short. Check out the menu Teams/MLB/American League for instance.
http://209.210.237.14:8080/spbaseball/o ... ile=notify
Scott
Its because the menu renders to the width of the longest string within it...which is fine. But then there are too many items to fit, so it must put in a scroll bar, and uh-oh, now we dont have room anymore with regard to the width, gotta throw in another scroll bar. To fix this, explicitly increase the width of the menu so that when the scroll bar appears, the menu is still wide enough to accomedate it. In your menu declaration, you can set an itemwidth property to something like, "120px". Look in the menuproperties reference if you dont understand.
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."
I understand what you are saying about it not taking into account the vertical scrollbar into the width - thus causing the need for the horizontal. I thought that was the case myself. But if that is the case, I would think that the sample menus the provide would have the same problem as I don't see where they are explicitly setting the width to make them work. So I think there is some other problem. For instance, check out the sample menu in the URL below. Note that the "Menu Samples" submenu has a veritcal scroll bar, but no horizontal one. And I see no where in the setup where it set the width explicitly.
http://milonic.com/menusample.php?sampleid=1
Thanks for your responses.
http://milonic.com/menusample.php?sampleid=1
Thanks for your responses.
Scott
Regarding the scriptpath, it is there because it is a dynamic path. For ease at the moment I put it in there so my velocity macros can process the path and set it. I will eventually include the milonic_src.js as a velocity macro as well but haven't gotten that far yet.
Regarding my reported problem, I seem to have found the culprit. When you have a menu in an html body that has the CSS attribute "overflow-y" set to "hidden". It causes the horizontal scroll bars to appear, regardless if there is room on the width of the page or not. If that is changed to something other than hidden, it works like a champ.
I have reported this bug to Andy for his consideration.
I'd like to thank you all for your responses and help.
Regarding my reported problem, I seem to have found the culprit. When you have a menu in an html body that has the CSS attribute "overflow-y" set to "hidden". It causes the horizontal scroll bars to appear, regardless if there is room on the width of the page or not. If that is changed to something other than hidden, it works like a champ.
I have reported this bug to Andy for his consideration.
I'd like to thank you all for your responses and help.
Scott