>I'd like to simply say that the table cell width should shrink to fit this content, with a 6pt margin to each side of the longest line.
Table styles allow you to specify cell padding, just as in CSS, and they allow you to specify a column width, also as in CSS, but I don't recall anything in CSS that will automatically make the apple column narrower that than the coriander, though it's been quite a few years since I did that kind of programming.
You can adjust this manually after filling the cells, but there is no way for InDesign to automatically know what that "longest line" is because it changes as you set the width, re-wrapping, just as paragraph text re-wraps when you adjust an ordinary text frame.
Once a table is populated, I'm sure you can script a solution that will look at the contents of header cells, for example, and adjust them, but there's no way to accomplish this with the current coding.
I can see a possibility that tables would be in constant flux as they are populated, constantly changing as each cell is filled or edited, and some people might actually like this, but personally I would find it annoying, unpredictable, and counterproductive, not to mention it would probably have a detrimental effect on other program performance.
Feel free to make a feature request: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Make sure you describe in great detail how you would expect this to work, including things like whether all columns should have the same width, or should adjust to the header cell in each column independently, and whether cells should be expanding vertically to accommodate this.
Peter
... View more