2 Replies Latest reply on Apr 21, 2008 1:58 AM by PhilBell

    Tree labelfield not aligned correctly

    PhilBell
      I have been using an XML feed to drive a tree control - to show a directory structure. When I start the app and do the load of the data at least one of the labels in the control shows up above the proper position. Opening and closing the leaf sometimes gets rid of it but it is inconsistent. The Tree control code looks like:

      <mx:Tree x="12" y="32" width="217" height="350" id="DirectoryListing" labelField="@Name"
      showRoot="false" change="treeChanged(event)" defaultLeafIcon="@Embed('../images/folder.gif')"></mx:Tree>

      and the xml looks like:

      - <root>
      - <Workspace Name="user1's Personal Workspace" ID="24D8:1A5D:wspr:F8D404C0C37E43ABBCF70A9D9543FD4200000000004C/0000000000000002000000000 1B3E3E6000001193354E2EC0000000000000014" TYPE="WORKSPACE">
      <FOLDER Name="Notifications" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F000000049D45/0000000000000000000000000 0AF8CFE00000118EAC5D9F70000000000000000" DESCRIPTION="folder for notification messages" />
      <FOLDER Name="Notes" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000010D1B0/0000000000000000000000000 0B8BFF100000118EC0F1ACA0000000000000000" DESCRIPTION="StickyNotes" />
      <FOLDER Name="SonarThemeFolder" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F0000001E8D60/0000000000000001000000000 16E9ECD0000011928EEC5E50000000000000003" DESCRIPTION="Sonar Theme Folder containing Theme/Bond Placeholders - do not modify contents" />
      <FOLDER Name="Journal Archive" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000010D1B1/0000000000000000000000000 0B8C03A00000118EC0F1F7C0000000000000000" DESCRIPTION="JournalArchive" />
      <FOLDER Name="Subscriptions" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F000000049D46/0000000000000000000000000 0AF91BC00000118EAC654A50000000000000004" DESCRIPTION="folder for subscriptions" />
      <FOLDER Name="Trash" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F0000000C3DD7/0000000000000000000000000 0B534FB00000118EB8E87600000000000000000" DESCRIPTION="null" />
      <FOLDER Name="Junk E-mail" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000010D1B4/0000000000000000000000000 0B8C09400000118EC0F27620000000000000000" DESCRIPTION="null" />
      <FOLDER Name="Documents" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F000000049D47/0000000000000000000000000 1FABF80000001193E04E9660000000000000027" DESCRIPTION="folder for documents" />
      <FOLDER Name="Sent Items" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000010D1B3/0000000000000000000000000 0DCD07200000118F14E8C350000000000000003" DESCRIPTION="null" />
      <FOLDER Name="Public Documents" ID="24D8:1A5D:afrh:711C3B6E55ED414990FD87AC0E6C31FA00000000001D/0000000000000000000000000 0AF8CFE00000118EAC5DA830000000000000001" DESCRIPTION="public documents" />
      <FOLDER Name="Drafts" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000010D1B2/0000000000000000000000000 0B8C07000000118EC0F221A0000000000000000" DESCRIPTION="null" />
      <FOLDER Name="Sent" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F000000232141/0000000000000000000000000 1B4C080000001193376823F0000000000000002" DESCRIPTION="null" />
      <FOLDER Name="INBOX" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F000000049D44/0000000000000000000000000 1B4BFF90000011933767A600000000000000016" DESCRIPTION="inbox for email messages" />
      <FOLDER Name="Combined" ID="" />
      </Workspace>
      - <Workspace Name="team_workspace_1206537974575" ID="24D8:1A5D:wstm:711C3B6E55ED414990FD87AC0E6C31FA00000000002C/0000000000000002000000000 0B3187F00000118EB44922E000000000000000B" TYPE="WORKSPACE">
      <FOLDER Name="Public Documents" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F0000000930A1/0000000000000000000000000 0B3180200000118EB448AE20000000000000001" DESCRIPTION="public documents" />
      <FOLDER Name="Documents" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000009309D/0000000000000000000000000 1D8B6170000011938D35DF50000000000000002" DESCRIPTION="folder for team documents" />
      <FOLDER Name="INBOX" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F00000009309B/0000000000000000000000000 0B3177600000118EB4486210000000000000000" DESCRIPTION="inbox for email messages" />
      <FOLDER Name="Combined" ID="" />
      </Workspace>
      - <Workspace Name="wspc_1206537886465" ID="24D8:1A5D:wstm:711C3B6E55ED414990FD87AC0E6C31FA000000000023/0000000000000002000000000 0B3057100000118EB433D85000000000000000B" TYPE="WORKSPACE">
      <FOLDER Name="Documents" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F0000000623CE/0000000000000000000000000 1FC201B000001193E37D2900000000000000020" DESCRIPTION="folder for team documents" />
      <FOLDER Name="Public Documents" ID="24D8:1A5D:afrh:711C3B6E55ED414990FD87AC0E6C31FA00000000002B/0000000000000000000000000 0B3043700000118EB432BC50000000000000001" DESCRIPTION="public documents" />
      <FOLDER Name="INBOX" ID="24D8:1A5D:afrh:484087F6C42DEAF8E040578C5C841A4F0000000623CD/0000000000000000000000000 0B3043700000118EB432AE10000000000000000" DESCRIPTION="inbox for email messages" />
      <FOLDER Name="Combined" ID="" />
      </Workspace>
      </root>

      Is there any reason for this odd behaviour. Everything validates - the xml and the code - so it should work