<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>I had this working before not sure what I changed but after I upgraded the child nodes from my layercontainer (which is basically my layerlist control) are back to a large font and trying to make them smaller. In the below code, can I change the font size
of the child nodes loaded through my filter anywhere? I have tried to change x-tree-node classes in the ext.css etc but it only has an effect on each node overall not just the children/leaf.. Any way I can do this? Appreciate any advice on how to change the
CSS class of my child nodes from the following -</div>
<div> </div>
<div> </div>
<div><font face="Courier New" color="#008000">// ----------------BEGIN LayerLists for Legend Menu -------------------------------</font></div>
<div><font face="Courier New" color="#008000"> </font></div>
<div><font face="Courier New"> <font color="#008000">//Labels LayerList </font></font></div>
<div><font face="Courier New"> <font color="#0000FF">var</font> layerList_Labels = <font color="#0000FF">new</font> GeoExt.tree.LayerContainer({</font></div>
<div><font face="Courier New"> text: <font color="#A31515">'Labels'</font>,</font></div>
<div><font face="Courier New"> layerStore: mapPanel.layers,</font></div>
<div><font face="Courier New"> leaf: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> enableDD: <font color="#0000FF">true</font>,</font></div>
<div><font face="Courier New"> expanded: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> checked: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> listeners: {</font></div>
<div><font face="Courier New"> <font color="#A31515">'checkchange'</font> : <font color="#0000FF">function</font>(node, checked)</font></div>
<div><font face="Courier New"> {</font></div>
<div><font face="Courier New"> <font color="#008000">// If a parent node is unchecked, uncheck all the children</font></font></div>
<div><font face="Courier New"> <font color="#0000FF">if</font> (node.getUI().isChecked()) {</font></div>
<div><font face="Courier New"> node.expand();</font></div>
<div><font face="Courier New"> node.eachChild(<font color="#0000FF">function</font>(child){</font></div>
<div><font face="Courier New"> child.ui.toggleCheck(<font color="#0000FF">true</font>);</font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> <font color="#0000FF">if</font> (!node.getUI().isChecked())</font></div>
<div><font face="Courier New"> {</font></div>
<div><font face="Courier New"> node.expand();</font></div>
<div><font face="Courier New"> node.eachChild(<font color="#0000FF">function</font>(child) {</font></div>
<div><font face="Courier New"> child.ui.toggleCheck(<font color="#0000FF">false</font>);</font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> },</font></div>
<div><font face="Courier New"> loader: </font></div>
<div><font face="Courier New"> {</font></div>
<div><font face="Courier New"> filter: <font color="#0000FF">function</font>(record) </font></div>
<div><font face="Courier New"> {</font></div>
<div><font face="Courier New"> <font color="#0000FF">var</font> myarr = <font color="#0000FF">new</font> Array();</font></div>
<div><font face="Courier New"> myarr[0] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Neighbourhood Label"</font>);</font></div>
<div><font face="Courier New"> myarr[1] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Overview Streets"</font>);</font></div>
<div><font face="Courier New"> myarr[2] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Quadrant Streets"</font>);</font></div>
<div><font face="Courier New"> myarr[3] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Neighbourhood Streets"</font>);</font></div>
<div><font face="Courier New"> myarr[4] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Block Streets"</font>);</font></div>
<div><font face="Courier New"> myarr[5] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Proposed Streets"</font>);</font></div>
<div><font face="Courier New"> myarr[6] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Address Label (Overview)"</font>);</font></div>
<div><font face="Courier New"> myarr[7] = record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Address Label (Detail)"</font>);</font></div>
<div><font face="Courier New"> <font color="#0000FF">if</font>(myarr[0]==-1 && myarr[1]==-1 && myarr[2]==-1 && myarr[3]==-1 && myarr[4]==-1 && myarr[5]==-1 && myarr[6]==-1 && myarr[7]==-1)</font></div>
<div><font face="Courier New"> {</font></div>
<div><font face="Courier New"> <font color="#0000FF">return</font> <font color="#0000FF">false</font>;</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> <font color="#0000FF">else</font></font></div>
<div><font face="Courier New"> {</font></div>
<div><font face="Courier New"> <font color="#0000FF">return</font> <font color="#0000FF">true</font>;</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New" color="#000080"><br>
</font></div>
<div><font face="Courier New"> </font></div>
<div> </div>
</font>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</body>
</html>