开发者

Different vertical gaps between siblings in the same mx:Tree control

开发者 https://www.devze.com 2023-01-07 08:06 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消