Adobe Flex change text position on Accordion

Adobe Flex change text position on Accordion

Postby haretu » Thu Mar 24, 2011 10:50 am

Adobe Flex change text position on Accordion through setting AccordionHeader paddingLeft property.

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">

    <mx:Style>
        AccordionHeader {
            paddingLeft: 130; /* pixels */
        }
    </mx:Style>

    <mx:Accordion id="accordion"
            width="100%"
            height="100%">
        <mx:VBox label="One" />
        <mx:VBox label="Two" />
        <mx:VBox label="Three" />
        <mx:VBox label="Four" />
    </mx:Accordion>

</mx:Application>
Attachments
Screen shot 2011-03-24 at 10.50.26 AM.png
Screen shot 2011-03-24 at 10.50.26 AM.png (12.83 KiB) Viewed 682 times
haretu
 
Posts: 132
Joined: Sat Jan 08, 2011 9:56 pm

Return to Adobe FLEX Flash

Who is online

Users browsing this forum: No registered users and 1 guest

cron