2 Replies Latest reply on Jun 30, 2011 3:32 PM by Gregory Lafrance

    cornerRadius ignored when have scrollbars.

    Gregory Lafrance Level 6

      With the following code, if you drag the divider up so there is a vertical scrollbar you see a little of the green background in the upper left, meaning the cornerRadius is being ignored when there are scrollbars. If you drag the divider down you see this does not happen when using a viewstack.

       

      How can I get this to not happen?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
        backgroundGradientColors="[#333333, #333333]">
        <mx:VDividedBox width="100%" height="100%" 
          backgroundColor="#FF0000" cornerRadius="10" 
          borderStyle="solid">
          <mx:Canvas cornerRadius="10" width="100%" height="50%" 
            backgroundColor="#00FF00" borderStyle="solid">
            <mx:Canvas width="100%" height="300" 
              backgroundColor="#FFFFFF" borderStyle="solid" 
              cornerRadius="10" />
          </mx:Canvas>
          <mx:ViewStack cornerRadius="10" width="100%" height="50%" backgroundColor="#00FF00" borderStyle="solid">
            <mx:Canvas width="100%" height="100%">
              <mx:Canvas width="100%" height="300" backgroundColor="#CCCCCC" borderStyle="solid" cornerRadius="10" />          
            </mx:Canvas>
          </mx:ViewStack>
        </mx:VDividedBox>  
      </mx:Application>
      

       

      The screenshots below show problem and no problem:

       

       

      No problem:

      noproblem1.png

       

       

      Problem:

      problem1.png