     override public function getLayoutBoundsY(postLayoutTransform:Boolean = true):Number
     {
         var stroke:Number = - getStrokeExtents(postLayoutTransform).y * 0.5;
-        if (postLayoutTransform)
-        {
-            var m:Matrix = computeMatrix();
-            if (m)
-                return stroke + getRoundRectBoundingBox(width, height, radiusX, radiusY, m).y;
-        }
+        if (postLayoutTransform && hasComplexLayoutMatrix)
+            return stroke + getRoundRectBoundingBox(width, height, radiusX, radiusY, 
+            										layoutFeatures.layoutMatrix).y;
 
         return stroke + this.y;
     }

                                                        height:Number,
                                                        postLayoutTransform:Boolean = true):Number
    {
        if (postLayoutTransform)
        {
            var m:Matrix = computeMatrix();
            if (m)
                width = getRoundRectBoundingBox(width, height, radiusX, radiusY, m).width;
        }

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


import mx.core.mx_internal;
import mx.utils.MatrixUtil;

import spark.primitives.supportClasses.FilledElement;

use namespace mx_internal;

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