Strange behaviour of Tree component

I’m  making a tree like menu structure. It is already a hacky business but now I encountered another problem. And I have no clue where it is happening and if I do something wrong or Flex is messing it up.

I have a Tree component that uses a tree renderer to render the items. In this tree renderer I determine if it has children and style it by setting the left position and adding an icon.

If you open, close, open “test 2″ in the example under this paragraph you see that the + sign icon is changing position. But the styling function (called init() in treeItemRenderer) that is setting that + icon is only called once. I get the idea that he is mirroring the items after the click. I have the source here. I hope some one else knows how to solve this.

Example

This movie requires Flash Player 9

Vote or add to Uitleg over het gebruik van deze icons : Add/Vote on eKudos Add/Vote on NUjij Add/Vote on MSN Reporter Add/Vote on Digg Stumble it! Add this article to Del.icio.us Add to Furl Add to you favourites on Technorati Add to your Google bookmarks Subscribe for the RSS-feed of this site Send this page as e-mail through Feedburner Maak een notitie op deze pagina met Fleck

Related posts:



About this entry