1 Reply Latest reply on Aug 10, 2010 5:08 PM by laxmidi

    Problem Rounding Corners in Flex 3




      I'm having some problems rounding my panel and controlbar.


      Actually, the corners are rounded. The problem is that at the bottom of the panel are light gray squares peeking out from behind the rounded corners. If I put a dropshadow on the panel then, only one of the corners has the light gray square problem.



      I simplified the code a lot. But, it should show what I'm trying to do.


      <?xml version="1.0" encoding="utf-8"?>
           xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
           styleName="myPanelstyles"  >
               <mx:Accordion id="myAccordion"
                                          <mx:DataGrid  id="myGrid"   
                                                           <mx:DataGridColumn />     
                                                           <mx:DataGridColumn />                                           
                                                           <mx:DataGridColumn />
                                                           <mx:DataGridColumn />
                                  <mx:VBox label="Details"
                <mx:ControlBar height="40"  width="100%" barColor="0xCCCCCC"  >
                     <mx:Button x="20" y="400" />





      .myPanelstyles {
         borderColor: #aaaaaa;
         borderAlpha: 1;
         borderThicknessLeft: 2;
         borderThicknessTop: 0;
         borderThicknessBottom: 0;
         borderThicknessRight: 2;
         roundedBottomCorners: true;
         cornerRadius: 8;
         headerHeight: 40;
         headerColors:  #575757, #0d0d0d;
         footerColors: #575757, #000000;
         shadowDirection: left;
         titleStyleName: "white4";
         fontsize: 15;


      I've read that sometimes there are problems rounding a panel that has a border. I tried setting the border to solid and thickness to zero and it's still not working correctly.


      Any ideas as to how to solve this problem?


      Thank you.



        • 1. Re: Problem Rounding Corners in Flex 3
          laxmidi Level 1

          Okay, I figured out the cause of the problem.


          The component is in a ViewStack and the edges of the ViewStack are peeking out. I set the backgroundColor of the ViewStack to red and that's how I determined the cause of the problem. I set the viewStack's width to 100% and that solved it.