2011-07-09 54 views
0

下面的代碼產生了兩組具有彩色背景和它們之間的餘量。我試過了顯而易見的CSS修正(margin-top/bottom等),但它似乎沒有任何好處。有誰知道我該怎麼做?Flex 4.5 - s:組默認邊距?

<s:VGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="center"> 
     <s:Group id="topBar" width="100%" height="10%" bottom="0"> 
      <s:Rect width="100%" height="100%"> 
       <s:fill><s:SolidColor color="black" /></s:fill> 
      </s:Rect> 
     </s:Group> 

     <s:Group id="contentBar" width="100%" height="90%" top="0"> 
      <s:Rect width="100%" height="100%"> 
       <s:fill><s:SolidColor color="red" /></s:fill> 
      </s:Rect> 
     </s:Group> 
    </s:VGroup> 

回答

2

你是說你想擺脫在Vgroup的子元素之間的差距?

您可以在中集集團的差距= 0,如:

 
<s:VGroup gap="0" /> 

希望有所幫助。

+0

我完全不在那一個。確定孩子的元素是罪魁禍首。謝謝! – Shawn