tags:

views:

75

answers:

1

Hi all..

In flex form layout

<mx:Form id="form">
        <mx:FormItem label="horizontal:">
            <mx:Text text="test"/>
        </mx:FormItem>
</mx:Form>

the output will be

horizontal 'test'

But my constraint is i want to align the textbox(first child of the form item ) vertically with the label. How can i do this ?Any inputs invited

+1  A: 

You could override the form / formitem class to change the layout approach by overriding updateDisplayList method.

You could also try something like this:

<mx:Form id="form">
        <mx:FormItem direction="vertical">
            <mx:Label text="horizontal:"/>
            <mx:Text text="test"/>
        </mx:FormItem>
</mx:Form>
www.Flextras.com
Can u provide me some more inputs.. i looked at the source... But cant track it . can u provide me the sample overridden code.. Thanks !!!!
Learn about the Flex Component lifecycle. Step through the lifecycle methods. "Createchildren, commitProperties, updatedisplayList, and measure. Review the code, figure out what it does. See if it is possible to change it.
www.Flextras.com