I am trying to show a tree as the popup component for the PopButton control. What I am observing is that , even if i set the width of tree to a larger value it is clipped after the width of PopUpButton. Moreover as the width is increased the space between text label and folder icon increases in the tree component . The second problem seems to be a serious one. How can the space between text label and folder icon increase on increasing the width of tree. Moreover the text labels of all the branches and leaf nodes seem to align themselves vertically. This behavior is not seen when the same tree component is used outside of PopUpButton control. Any pointers ?
Are you using custom tree item renderers?
I am using a custom dataDescriptort but nevertheless the issue persists even when its a simple sample Tree picked up from the Flex Builder help which takes XML as the dataProvider. I am able to control the width of the tree component but what i see is that the folder icons are aligned to left while the text is almost centrally aligned with a lot of space in-between. Image attached.