Does clipContent clip the Graphics object or just DisplayObject children?

On Fri, Sep 5, 2008 at 8:37 AM, Guy Morton <[EMAIL PROTECTED]> wrote:

>   Hi Mike
>
> I know for sure that the graphics are being drawn outside the enclosing
> canvas, because the child canvas is drawing x values < 0 and these aren't
> being clipped but are visible outside the map area.
>
> Guy
>
> On 05/09/2008, at 9:51 PM, Michael Schmalle wrote:
>
>
> Hi Guy,
>
> Are you actually measuring the graphics that you draw (in a sub component,
> the child of the canvas)?
>
> Is there a possibility that canvas is not knowing if the graphics are
> extending passed what it THINKS is the measured width and height?
>
> Mike
>
> On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton <[EMAIL PROTECTED]> wrote:
>
>> I have a problem in that clipContent seems to intermittently not clip
>> the content in a layer as I imagine it should.
>>
>> The graphics in the layer are drawn using the graphics class and the
>> layer is inside another Canvas, eg
>>
>> <mx:Canvas clipContent="true" id="containerLayer" bottom="0"
>> left="350" top="0" right="0" horizontalScrollPolicy="off"
>> verticalScrollPolicy="off" >
>> <mx:Canvas id="dynamicLayer" clipContent="true" width="100%"
>> height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" />
>> </mx:Canvas>
>>
>> MOST of the time the content drawn in the nested canvas is clipped
>> correctly, but sometimes it spills over the content to the left of the
>> containing canvas.
>>
>> Anyone got any ideas as to why this happens and how to prevent it?
>>
>> TIA
>>
>> Guy
>>
>>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>
>
>  

Reply via email to