开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜