IIRC, formitem doesn't wordwrap its labels.  You might have to place a
Text control manually.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paulbohnenkamp
Sent: Tuesday, March 11, 2008 10:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FormItem Text not wrapping

 

Hi,

I have a DataGrid and am showing the full text of a DataGridColumn in 
a FormItem below it when a row is selected. My problem is the text 
in the FormItem isn't wrapping (which I want). 

Any ideas?

Thanks,
Paul

<mx:Script>
<![CDATA[
private function selectedItemChanged():void{
subject.text = datagrid.selectedItem.subject;
}
]]>
</mx:Script>

<mx:DataGrid width="100%" id="datagrid" change="selectedItemChanged
()" ...>
<mx:columns>
<mx:DataGridColumn dataField="subject" headerText="Subject" 
width="200" />
</mx:columns>
</mx:DataGrid>

<mx:Form width="100%">
<mx:FormItem label="Subject" width="100%">
<mx:Text text="" id="subject" width="100%" />
</mx:FormItem>
</mx:Form>

 

Reply via email to