Yep :)  But the following seems to do the trick...
 
test.mxml
 

<?xml version="1.0" encoding="iso-8859-1"?>

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"

xmlns="*"

>

<mx:Form>

<HackedFormItem label="small label" >

<mx:TextInput />

</HackedFormItem>

<HackedFormItem label="really big label" >

<mx:TextInput />

</HackedFormItem>

<HackedFormItem label="really really really big label" >

<mx:TextInput />

</HackedFormItem>

</mx:Form>

</mx:Application>

 

HackedFormItem.as

import mx.controls.FormItemLabel;

class HackedFormItem extends mx.containers.FormItem {

function layoutChildren():Void {

super.layoutChildren();

label_mc.x = 0;

}

}

Cheers,
Paul.
 
-----Original Message-----
From: Robin Hilliard [mailto:[EMAIL PROTECTED]
Sent: Friday, 11 March 2005 13:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Left aligned form labels

Hi,

Does anyone else find the inability to left align FormItem labels a
problem?  We have a major US financial client whos style guide requires
left aligned labels on forms.  I tried to use the FormItem.labelObject
property to see if I could get to the label's style attributes but it
seems that although it's documented the labelObject property doesn't
exist.  Has anyone worked out a workaround?  We have to build a lot of
forms, would be good to be able to use the Flex tags.

Cheers,
Robin
http://www.rocketboots.com.au




~~-------
This e-mail may contain confidential information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system. You must not disclose this e-mail to anyone without express permission from the sender. The contents of all e-mails sent to and received from Optus may be scanned, stored, or disclosed to others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in this e-mail but does not warrant that the information is error or omission free. The information (including any pricing information) contained in this e-mail is subject to change. This e-mail is not a quotation or proposal and no contractual obligations arise until you and Optus sign a formal written contract or formal variation to your existing contract.

Any pricing contained in this e-mail is exclusive of GST unless otherwise stated.
********************************************************************

Reply via email to