What are you trying to accomplish?

The container will only clip children in it's contentPane IE conentChildren.

If you want something that is not content, you need to create a FlexShape or
sprite and add it to the containers rawChildren.

I can't see why you would want something like that in content children. :)
There would not be any room left for other things since it is an HBox.

Sounds like you need to create a composite component. Then again, I don't
really understand why you are doing what you are doing and want scroll bars.

Peace, Mike

On 7/26/07, Kevin <[EMAIL PROTECTED]> wrote:

  Hello All-

I feel like I'm missing something completely obvious, so forgive me if
it is.

I have a custom component (HBox) that is set at 200x100
(maxWidth/maxHeight also set at that value). I have
horizontalScrollPolicy="on". On creationComplete, I run a routine
that draws a rectangle 400x100 (using graphics.lineTo). Instead of
conforming to the container, it bleeds all the way over, onto the
parent application, etc.

How do I constrain the graphic to stay in its container and not
overflow; and if it does overflow, give it some horizontal scrollbars.
Any ideas?

Thanks all...

- Kevin




--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to