2011-06-21 2 views

答えて

0

textIndentスタイルを設定できますが、それは左側の「パディング」にのみ影響します。私はそれを調べていませんが、paddingLeftpaddingRightのスタイルを設定することもできます。 Flex Examplesから

<?xml version="1.0" encoding="utf-8"?> 
<!-- http://blog.flexexamples.com/2008/01/14/indenting-a-flex-panel-controls-title/ --> 
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
     layout="vertical" 
     verticalAlign="middle" 
     backgroundColor="white"> 

    <mx:Style> 
     .myPanelTitle { 
      textIndent: 50; 
     } 
    </mx:Style> 

    <mx:Panel title="Lorem ipsum" 
      titleStyleName="myPanelTitle" 
      titleIcon="@Embed('assets/images/accept.png')" 
      width="200"> 
     <mx:Text text="The quick brown fox jumped over the lazy dog." 
       width="100%" /> 
    </mx:Panel> 

</mx:Application>