What happens if you hard-code the column width for the word-wrapping
column?

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pasflex
Sent: Tuesday, March 07, 2006 1:34 PM
To: [email protected]
Subject: [flexcoders] Prob]lem with wordwrap - flex 1.5

I have a datagrid that has wordwrap turned on for one of it's 
columns.  If the contents of a cell in that column are long enough 
to cause a scrollbar to appear when the scrollbar is moved or the 
scroll down arrow clicked the column gets narrower until it 
disappears.
Also if there are multiple rows with values like this scrolling does 
not reveal the entire contents of the cell, it only goes to the top 
of the next row.

Here is some sample code that recreates the problem.  Any ideas?
Thanks.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; 
xmlns="*" width="250" height="250" backgroundColor="#FFFFFF">
        <mx:DataGrid width="100%" height="100%" 
variableRowHeight="true">
                <mx:columns>
                        <mx:Array>
                                <mx:DataGridColumn 
columnName="name"/>
                                <mx:DataGridColumn 
columnName="title"/>
                                <mx:DataGridColumn 
columnName="longString" wordWrap="true"/>
                        </mx:Array>
                </mx:columns>
                <mx:dataProvider>
                        <mx:Array>
                                <mx:Object>
                                        <name>name</name>
                                        <title>title</title>
                                        <longString>Click on the 
scroll down arrow or on the scroll bar below the scroll control.  
This is a long string that is long enough to cause a vertical scroll 
bar to be displayed.</longString>
                                </mx:Object>
                        </mx:Array>
                </mx:dataProvider>
        </mx:DataGrid>
</mx:Application>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to