Does anyone know of a way to specify different vertical gaps between siblings in a Tree? I want to child no开发者_如何转开发des spaced tighter together (maybe 10px) while the top level parents remain spaced further apart (20px). Essentially, I need to change the gap dynamically based upon the depth of the node, but I'm not sure if the Tree class (or the List class, which Tree extends) offers this type of functionality. Any ideas? Thanks in advance.
Can you use an itemRenderer and add spacing to the itemRenderer based on the data sent in?
I would try setting the padding to the minimum you want, then add <mx:Spacer ... />
with whatever additional height/ width you want to add between the children where desired.
精彩评论