             
         // Otherwise we draw at x,y since the display object will be
         // positioned at 0,0
-        if (layoutFeatures != null && layoutFeatures.offsets != null)
-            return x + layoutFeatures.offsets.x;
+        if (layoutFeatures != null && layoutFeatures.postLayoutTransformOffsets != null)
+            return x + layoutFeatures.postLayoutTransformOffsets.x;
             
         return x;
     } 

            if (m)
                m.translate(-rectBounds.x, -rectBounds.y);
            
            bitmapData.draw(displayObject, m);
           
            if (restoreDisplayObject)
            {


        // Calculate the width and height pre-transform:
        var m:Matrix;
        if (postLayoutTransform && hasComplexLayoutMatrix)
            m = layoutFeatures.layoutMatrix;
        if (!m)
        {
            if (isNaN(width))
