Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 3.2 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. Create a tree component with values dynamically fetched from a dynamic source.
2. Click folders on the tree and sub-folders until you enable the vertical scroll policy.
Actual Results:
Folders/sub-folders at the end of the list and some medium sections disappears.
Expected Results:
All folder hierarchy should be visible and vertical scrollbars should be enabled where appropriate.
Workaround (if any): None
Tried these workarounds, none worked:
1. http://www.nbilyk.com/flex-scrollpolicy-bug
2. http://frishy.blogspot.com/2007/09/autoscrolling-for-flex-tree.html
3. http://www.hempton.com/2008/05/flex-scrollpolicyauto-not-good-enough/
4. http://butterfliesandbugs.wordpress.com/2007/06/22/bug-tree-scrollbar-doesnt-show-up/
Example Code:
In an MXML file:
<mx:Tree id="folders_tr"
width="30%" height="100%"
dataProvider="
"
dataDescriptor="
"
labelField="@name"
itemOpening="handleFolderOpening(event);"
itemClick="handleFolderClick(event)"
defaultLeafIcon="
folderClosedIcon="{folderClosedIcon}
"
folderOpenIcon="
">
</mx:Tree>
In an AS file (FolderTreeDescriptor.as):
public class FolderTreeDescriptor extends DefaultDataDescriptor
{
public override function isBranch(node:Object, model:Object = null):Boolean
{
var folder:XML = node as XML;
if(folder.@hasChildren == "true")
{ return true; } return false;
}
}