Home > Adobe Flex > Adobe Flex Tips: Canvas rounded corners

Adobe Flex Tips: Canvas rounded corners

November 28th, 2010 Leave a comment Go to 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" />

Liked this tutorial? Share and Enjoy:

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Reddit
  • blogmarks
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yahoo! Buzz
  • NewsVine
  • Slashdot
  1. No comments yet.
  1. No trackbacks yet.