Thanks very much Alex! -Greg
On Wed, Sep 10, 2008 at 5:35 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > Have the renderer let you access the label's x position and test against the > width of the Tree minus viewmetrics > > > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Greg Hess > Sent: Wednesday, September 10, 2008 7:50 AM > To: [email protected] > Subject: [flexcoders] How to determine if TreeItemRenderer is horizontally > visible? > > > > Hi All, > > My tree is representing a file system and deep nested folders are not > visible. I have been using Tree.scrollToIndex to make a selected item > visible however it does not handle the horizontal scrolling and it > seems I need to implement this myself. > > I have an ItemRenderer(selected Item) but I am not sure how I can tell > if the Item is really visible as Tree.isItemVisible() does not seem to > check the horizontal visibility of the icon and label. > > Sooo, with the ItemRenderer I do have its x,y position but how do I > translate that into a horizontalScrollPosition? Or is their another > way? > > Any help much appreciated! > > Thanks, > > Greg > >

