Panel scrolling problem in Adobe Flex 3
Posted on 2008-10-01
Currently, I have an object that extends the Panel class in Flex. In that object, I add a child that is an object that extends the Canvas class.
My problem is when the Canvas object is getting rendered, and it's larger than the parent Panel object, I get several different problems depending on if the Canvas object has children.
If the Canvas object does NOT have children and it's larger than the parent Panel object, it's drawn OVER the Panel object.
If the Canvas object DOES have children and it's larger than the parent Panel object, the Canvas objects does NOT draw over Panel object. However, in both scenarios, the scroll bars on the parent Panel object do not take effect and display.
I have the set the "clipContent" property on the parent Panel object to true. I have turned OFF the horizontal and vertical scrolling properties on the child Canvas object, in order to keep the scroll bars from showing there. The scroll bars on the Canvas object actually do work. However, that's not the intended result I want.
I need help getting the scroll bars to show and work on the parent Panel object.