             x -= measuredX;
             y -= measuredY;
         }
-
 
         if(x != currentX || y != currentY)
         {

    {
        // NOTE: This code will not work correctly when we share
        // display objects across multiple graphic elements.
        var bitmapData:BitmapData = new BitmapData(actualSize.x, actualSize.y, transparent, fillColor);

        if (displayObject && nextSiblingNeedsDisplayObject)
        {
            var m:Matrix = displayObject.transform.matrix;
        
            if (m)
                m.translate(-actualPosition.x, -actualPosition.y);
            bitmapData.draw(displayObject, m);
        }
        else

import mx.graphics.IGraphicElement;
import mx.graphics.IStroke;
import mx.graphics.MaskType;
import mx.layout.ILayoutElement;
import mx.managers.ILayoutManagerClient;
import mx.utils.MatrixUtil;
import mx.utils.OnDemandEventDispatcher;
