Column width auto with wrapText & line breaks in cells?

Topics: User Forum
Jan 23, 2010 at 4:47 PM

Thanks to this thread http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=32427 I have two columns with cells set to 'wrapText' so line breaks within the cells work as desired.

But column width autoSize does not work on columns with 'wrapText + line breaks' cells. I wish the column width would be the length of longest line in the column, as it works for columns without any 'wrapText + line breaks'. I suspect wrapText negates column width autoSize? As a workaround, I hardcode column width for these two columns, but perhaps there is a better method?

Developer
Jan 24, 2010 at 10:52 AM

This is a bug. Work item created:

http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=11608

Feb 7, 2010 at 5:17 PM

Just tested your updated code, and problem is now fixed for me. Thank you!