Portal Engine
Version 3.x > Portal Engine > Problem with expanding TVW when subnodes has childs View modes: 
User avatar
Member
Member
s.chernev-urspectr - 11/5/2008 6:22:01 AM
   
Problem with expanding TVW when subnodes has childs
At now time experimenting with CMS, adding some products in any nodes in treeview and got conflicts in viewing tree.
The main node don't calculate all subnodes levels. See shot:
http://xe.at.tut.by/textover.gif
So, how possible disable autoexpand subnodes childs when i clicking on node?
Or, before expand node, subnodes calculatiing properly?

User avatar
Member
Member
s.chernev-urspectr - 11/6/2008 2:04:47 AM
   
RE:Problem with expanding TVW when subnodes has childs
Dear, Juraj!
I mean Treeview that LeftProductMenu in E-Commerce template.
So, its important question in our needs and i want know, is this trouble are solveing, or no?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/6/2008 8:56:15 AM
   
RE:Problem with expanding TVW when subnodes has childs
Hi,

it is a CSS issue. For other visitors: the web part is not CMSTreeView but CMSList menu.

Could you please exchange this part of CSS code of your stylesheet (all the content under the caption /*#Menus/Left menu#*/)

/*#Menus/Left menu#*/
.leftMenuCMSListMenuUL
{
list-style: none;
padding: 0px 0px 0px 10px;
margin-left: 17px;
}

.leftMenuCMSListMenuUL ul
{
margin: 0;
padding-left: 3px;
}

.leftMenuCMSListMenuUL ul ul{
margin: 0;
padding-left: 3px;
}

.leftMenuCMSListMenuUL ul ul ul{
margin: 0;
padding-left: 3px;
}

.leftMenuCMSListMenuLink, .leftMenuCMSListMenuLinkHighlighted
{
color: #000;
text-decoration: none;
font-weight: bold;
}
.leftMenuCMSListMenuLink:hover
{
text-decoration: underline;
}
.leftMenuCMSListMenuUL .leftMenuCMSListMenuLI
{
background: url(../App_Themes/EcommerceSite/Images/arrow_left.gif) no-repeat center left;
padding-left: 15px;
height: 13px;
line-height: 13px;
margin: 4px 0px;
}
.leftMenuCMSListMenuUL .leftMenuCMSListMenuHighlightedLI
{
background: url(../App_Themes/EcommerceSite/Images/arrow_left_active.gif) no-repeat 0px 2px;
padding-left: 15px;
/*height: 11px;*/
line-height: 13px;
margin: 4px 0px;
}

.leftMenuCMSListMenuUL .leftMenuCMSListMenuLI .leftMenuCMSListMenuUL
{
display: none;
}

.leftMenuCMSListMenuUL .leftMenuCMSListMenuLI .leftMenuCMSListMenuUL .leftMenuCMSListMenuLI .leftMenuCMSListMenuUL
{
display: none;
}

.leftMenuCMSListMenuUL .leftMenuCMSListMenuHighlightedLI .leftMenuCMSListMenuUL .leftMenuCMSListMenuLI .leftMenuCMSListMenuUL
{
display: none;
}

.leftMenuCMSListMenuUL .leftMenuCMSListMenuHighlightedLI .leftMenuCMSListMenuUL .leftMenuCMSListMenuLI,
{
font-weight: normal;
line-height: 13px;
}


Best regards,
Helena Grulichova

User avatar
Member
Member
gameprobe-tut - 11/8/2008 3:33:32 AM
   
RE:Problem with expanding TVW when subnodes has childs
Good work, Helena!
Thank you.
But little problem, if in CMSList in properties check WordWrap true, the text overlap too.
Also, if checkbox WordWrap = False and caption have in string '-' the text wrapping anyway. Try, under Products->Add New Document and name it to USB-Flash Devices (some text, some text), and this caption will be wraping.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/12/2008 5:43:35 AM
   
RE:Problem with expanding TVW when subnodes has childs
Hi,

it seems it is an IE problem (while using unchecked the WordWrap checkbox) – please see here: http://www.cs.tut.fi/~jkorpela/html/nobr.html

We tested a solution with adding: white-space: nowrap; to the definition of .leftMenuCMSListMenuUL .leftMenuCMSListMenuLI class so it seems like this:

.leftMenuCMSListMenuUL .leftMenuCMSListMenuLI
{
background: url(../App_Themes/EcommerceSite/Images/arrow_left.gif)
no-repeat center left;
padding-left: 15px;
height: 13px;
line-height: 13px;
margin: 4px 0px;
white-space: nowrap;
}

Best regards,
Helena Grulichova