2013-11-10 78 views
0

我嘗試使用CSS樣式設置爲填充面板彎曲火花面板填充,但它不工作如何設置

<fx:Style> 
.logo-bar{ 
    paddingRight: 20px; 
} 
</fx:Style> 
<s:Panel styleName="logo-bar"> 
    <s:Label>Hello</s:Label> 
</s:Panel> 

但是,同樣的風格將工作Flex 3的面板上,我應該怎麼爲flex 4面板設置填充嗎?

+0

試權,而不是paddingRight:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/core/UIComponent.html#style:right此外,還查看面板樣式:HTTP ://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Panel.html#commonstyleSummary – JeffryHouser

回答

0

對於spark,在佈局對象上設置填充。

<s:Panel> 
     <s:layout> 
      <s:VerticalLayout paddingRight="20"/> 
     </s:layout> 
</s:Panel>