RSS
 

Flex Canvas – Rounded Corners & cornerRadius

04 Mar

After struggling to get my custom components (based on canvas) to render with rounded corners, I found this link.

Problem
Even after utilizing the cornerRadius property, my containers were not rendering with rounded corners.

Solution
You simply need to ensure that borderStyle property is set to solid. If a border is not desired, set the borderThickness to zero.

 
9 Comments

Posted in Flex

 

Leave a Reply

 

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

 
  1. Ciaran

    February 19, 2009 at 11:21 am

    You beauty. Just what I needed.

     
  2. Dave

    April 14, 2009 at 9:28 pm

    Thanks. Exactly what I needed.

     
  3. Daniel

    September 11, 2009 at 10:58 am

    Cheers mate! Just what I was looking for!! :-)

     
  4. Grant

    October 10, 2009 at 7:42 am

    Spot on :-)

     
  5. Massiveaerodyne

    November 4, 2009 at 9:12 pm

    Thanks a million for once a quick answer to a specific search lol. heartheart HIM bless

     
  6. Rohan

    February 14, 2010 at 11:04 pm

    As Grant said, spot on! :)

     
  7. Wouter

    May 13, 2010 at 1:25 pm

    Cool, I needed this as well and would never have come up with the solution myself. Very well done.

     
  8. LinkDaddy

    May 19, 2010 at 9:31 pm

    LinkDaddy…

    Good stuff, found your site through bing using the words ‘GUMBO’ by the way :-)

     
  9. Hicham

    May 22, 2010 at 5:34 am

    Thanks !