1
Felx 3.5のパネルタイトル内のテキストのパディング(左右)を調整する方法はありますか?フレックス3.5 - パネルタイトルテキストパディング
Felx 3.5のパネルタイトル内のテキストのパディング(左右)を調整する方法はありますか?フレックス3.5 - パネルタイトルテキストパディング
textIndent
スタイルを設定できますが、それは左側の「パディング」にのみ影響します。私はそれを調べていませんが、paddingLeft
とpaddingRight
のスタイルを設定することもできます。 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>