Horizontal scrolling Flex Tree Control possible solution
It's been a while, but finally I have the oppertunity to use Flex in a real world project. The project is going to be a CMS for kiosk applications. This is similar to a CMS for a website, but the content in this case has to be distributed across the internet to hundreds of kiosks. For this project I will do the interface in Flex / Flash, with a backend in .Net 2.0 (C# and webservices). This idea has been around now for about 6 years and I think with Flex 2 I finally have the means to create a CMS with a real WYSIWYG user interface.
Anyway, this blog entry is about the Flex Tree Control. A good CMS can't do without a couple of tree controls. But having a tree control that did not scroll horizontal properly, was a bit dissapointing. The problem with the Tree Control is that there is no measurement of the horizontal width of induvidual nodes. I tried to solve this by doing the measurement on all visible items in the tree. It worked out ok I think, although it's probably not a universal solution to the problem. Take a look here (source included).