[
https://issues.apache.org/jira/browse/FLEX-26780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649306#comment-13649306
]
Justin Mclean commented on FLEX-26780:
--------------------------------------
Likely because of this code in Rect.as - there's no equiv clause if radiusY !=
0.
else if (radiusX != 0)
{
var rX:Number = radiusX;
var rY:Number = radiusY == 0 ? radiusX : radiusY;
g.drawRoundRect(drawX, drawY, width, height, rX * 2, rY * 2);
}
> Minor bug in operation of radiusX and radiusY for rectangles
> ------------------------------------------------------------
>
> Key: FLEX-26780
> URL: https://issues.apache.org/jira/browse/FLEX-26780
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: General Component
> Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s):
> Browser: Opera
> Language Found: English
> Reporter: Adobe JIRA
>
> I was trying to understand radiusX and radiusY for s:Rect, and it did not
> behave as expected. After working with it for a while, it appears that the X
> property is bleeding over into the Y property. For example, try the code
> below, and a rounded rectangle still forms. But set radiusX="0", and
> radiusY="20", and no rounding occurs.
> If radiusX should truly bleed over into radiusY, this probably should be
> documented. As an aside, I found the Flex documentation on what these
> properties do insufficient to understand them. Finally note this confusion
> came out of the Flex in 1 Week training, in the Day 5 Excercise 5.8
> (Animating Button Components), where they set an X radius on the button but
> no Y value, and it worked fine. Thanks.
> Addendum: note this "bleeding" effect is on the other radius properties as
> well, e.g. topRightRadiusX.
> ------------
> <?xml version="1.0" encoding="utf-8"?>
> <!-- RectExample.mxml -->
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark">
>
> <s:Rect x="100" y="100" height="100" width="200" radiusX="20" radiusY="0">
> <s:stroke>
> <s:SolidColorStroke color="0x000000" weight="2"/>
> </s:stroke>
> <s:fill>
> <s:SolidColor color="blue" />
> </s:fill>
> </s:Rect>
>
> </s:Application>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira