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>


      

Reply via email to