                                             layoutFeatures.layoutMatrix).width;
 
         // Take stroke into account
-        return width + getStrokeExtents(postLayoutTransform).x;
+        return width + getStrokeExtents(postLayoutTransform).width;
     }
 
     /**

        if (!newSize)
            newSize = new Point(minWidth, minHeight);

        return strokeExtents.x * -0.5 +
            getRoundRectBoundingBox(newSize.x, newSize.y, radiusX, radiusY, m).x;
    }


                                             layoutFeatures.layoutMatrix).height;

        // Take stroke into account
        return height + getStrokeExtents(postLayoutTransform).height;
    }
    
    /**
