Title: Form label width, how can I change it?
Have you tried dropping it into a Grid?
 
This would allow you to specify the widths of the fields and completely control the layout of the elements.
 
Jeff
http://www.flexauthority.com
 


From: Anthony Merryfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 10:01 AM
To: [email protected]
Subject: [flexcoders] Form label width, how can I change it?

Another question...

I have an accordion with several forms in, each of these have a separate form in and the labels are of unequal width. When Flex renders the forms it obviously picks the best width to fit the labels in, unfortunately it is not using the same width for all the forms within the accordion - this has the effect that the form fields are moving left and right with the text.

Sooo, my question is, can I control the width of the label and ensure the form fields stay in the same place?

Ta.

-----------------------------------

Some code:

                        ...label of no interest" required="true">
                                <mx:TextInput id="mobilePhoneVal" restrict="0-9 " />
                        </mx:FormItem>
                       
                        <mx:FormItem label="Short label:"required="true">
                                <mx:TextInput id="homePhoneVal" restrict="0-9 " />
                        </mx:FormItem>
               
                </mx:Form>
       
                <!-- Accordion Panel 2 -->     
                <mx:Form label="{heading2}">
               
                        <mx:FormItem label="Really long label that makes the form fields move:">
                                <mx:TextInput id="flatNumberVal" restrict="0-9a-z" maxChars="5" width="50" />
                        </mx:FormItem>
                       
                        <mx:FormItem label="Label that has been cut off...



This communication together with any attachments transmitted with it ("this E-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If youhave received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the authorand do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or anyof its subsidiaries.

Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS

Reply via email to