Reputation: 883
I am doing dataTipFunction on Tree in Flex3 Air,
At present the tooltip hides the present node, i need to reposition the tooltip above the node, how can change the x,y position of the tooltip.
Thanks in Advance
Upvotes: 1
Views: 2140
Reputation: 978
The way I did this was to add the toolTipShown listener on the tree itemRenderer, not on the tree. I have a blog post that shows you how to do it, including the code for positioning the tooltip below or above the node.
Upvotes: 2
Reputation: 3119
Hook into the tooltipShow event on the Tree and move the tooltip yourself (a reference to the tooltip is in the event)
You might need to do a bit of logic to position it correctly, and you'll probably want to check if repositioning it would move it off screen and move it below instead in that case.
Upvotes: 0