2 Replies Latest reply on Oct 31, 2011 11:21 AM by Jason Szeto

    Why does FormItem label text-align stop working in TileLayout?

    Chris Velevitch Level 1

      In Flex 4.5 spark forms, I can right justify formitem labels with the style:-

      s|FormItem #labelDisplay {text-align: right;}

      and form layout set to <s:FormLayout/>.

       

      When I change to layout to:-

      <s:layout>

           <s:TileLayout

                requestedColumnCount="3"/>

      </s:layout>

      the label text alignment is ignored.

       

      I have 42 data items I want to layout in 3 columns and I'm displaying each data item with a FormItem like:-

      <s:FormItem label="data item1:">

           <s:Label text="{theData.dataItem1}"/>

      </s:FormItem>

      and I'm using the <fx:Style> to set each of the form item's label text alignment to the right.

       

      How can I get this working?