Welcome Guest Search | Active Topics | Sign In | Register

Slide Menu Width Changes Options
Jamie
Posted: Friday, November 14, 2008 8:46:44 AM
Rank: Newbie
Groups: Member

Joined: 11/14/2008
Posts: 2
I'm using the slide menu asp.net control (it's currently set to the vertical-outlook style). When I add text items to the sub-menu that are longer than the specified width, they expand the menu horizontally past the width I have specified. Is there anyway to keep this from happening? I'd rather the text wrap than the menu expand horizontally. Is there a property I haven't found?

Thanks for any help that you can provide.

Jamie
Posted: Friday, November 14, 2008 9:01:49 AM
Rank: Newbie
Groups: Member

Joined: 11/14/2008
Posts: 2
Figured it out!

either

Code: C#
EO.Web.MenuItem subitem = new EO.Web.MenuItem(page.Name);
subitem.Text.NoWrap = EO.Web.NullableBool.False; //This line will do it
subitem.NavigateUrl = "~/" + module.Path + page.Url;
item.SubMenu.Items.Add(subitem);


or add
Code: XML
Text-NoWrap="False"

to the menu xml source


eo_support
Posted: Friday, November 14, 2008 9:09:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Excellent! Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.