title: InDesign - force table column width
body: <p>I'm using <strong>InDesign</strong> scripts in order to process .docx documents. I'm experiencing some issues with <strong>tables</strong>. Is there any way to force the columns's width value?
  So far, I've tried this to no avail:</p>
  
  <pre><code>var myAdjustment = myParentWidth / myTableWidth;
  currentTable.columns[c].width = myTableColWidths[c] * myAdjustment;
  currentTable.columns[c].recompose();
  </code></pre>
  
  <p>This works fine as long as there are no long words placed within the cells, otherwise the width adjust has no effect whatsoever. I don't care whether the words are correctly broken or not (hyphenation), I just want the table to fit inside my frame.</p>
  
  <p>Any help would be appreciated. Thanks in advance.</p>