                                                          height:Number,
                                                          postLayoutTransform:Boolean = true):Number
     {
-        if (postLayoutTransform)
-        {
-            var m:Matrix = computeMatrix();
-            if (m)
-                height = getRoundRectBoundingBox(width, height, radiusX, radiusY, m).height;
-        }
+        if (postLayoutTransform && hasComplexLayoutMatrix)
+            height = getRoundRectBoundingBox(width, height, radiusX, radiusY, 
+            								 layoutFeatures.layoutMatrix).height;
 
         // Take stroke into account
         return height + getStrokeExtents(postLayoutTransform).y;


import mx.core.mx_internal;
import mx.utils.MatrixUtil;
import spark.primitives.supportClasses.FilledElement;

/**
 *  The Rect class is a filled graphic element that draws a rectangle.

                                                        height:Number,
                                                        postLayoutTransform:Boolean = true):Number
    {
        if (postLayoutTransform && hasComplexLayoutMatrix)
            width = getRoundRectBoundingBox(width, height, radiusX, radiusY, 
            								layoutFeatures.layoutMatrix).width;

        // Take stroke into account
        return width + getStrokeExtents(postLayoutTransform).x;
