Archive

Posts Tagged ‘rounded corners’

Adobe Flex Tips: Canvas rounded corners

November 28th, 2010 No comments

A strange thing in Adobe Flex is that setting up the corner radius to a Canvas component with the cornerRadius property is not enough.

Solution

The thing you should do in order to have the corners of the Canvas rounded is to set the borderStyle property to solid.
So, at the end you will have something like this:


<mx:Canvas width="400" height="300"
borderStyle="solid" cornerRadius="10" />