Because indentation is handled by the renderer and label doesn't know how to do that.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of S B Sent: Wednesday, June 18, 2008 9:51 AM To: [email protected] Subject: [flexcoders] Tree itemRenderer not displaying as a tree? Why doesn't the following mx:Tree display as a tree? Instead, all nodes have the same indentation for some reason. Thanks! <mx:XMLList id="xml_tree_legend_data"> <node label="Medication" short="med"> <node label="Quantity" short="qty"/> <node label="Unit" short="unit"/> <node label="Adminstration method" short="amethod"/> <node label="Frequency" short="frequency"/> <node label="Core" short="core"/> </node> </mx:XMLList> [...] <mx:Tree id="tree_legend" dataProvider="{xml_tree_legend_data}" alternatingItemColors="['#fffffc', '#ededed']" width="100%" height="100%"> <mx:itemRenderer> <mx:Component> <mx:Label text="[EMAIL PROTECTED]()}] [EMAIL PROTECTED]"/> </mx:Component> </mx:itemRenderer> </mx:Tree>

