adjust table width to column contents?

Hi,

I have a table inside a vertical layout. Both the table and the vertical layout have undefined width (setWidth(“-1px”)). When the table is first constructed, it is just wide enough to accommodate the column contents, which is what I want. But if a new row is added, with a cell whose contents are wider than the cell’s column, the column width and the table width do not automatically adjust. Or, if the width of the last column is manually adjusted so that it extends past the end of the table, the table width does not adjust. Is there any way of forcing the table to update its layout, based on the current width of its columns (and their contents)?

Thanks very much,

Matthew Fleming