Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Table Row Height > Update Row Properties

Return to Forums

  • Author
    Posts
    • #63838
      sam-baldus
      Member

      Hi Chaps,

      I have a document that contains multiple tables with various row heights in each.

      I'm after a script that can get the height of each table row and then update the property of each row as follows:

      Cell Options > Rows and Columns > Row Height = Exactly (autoGrow:false)

      Cell Options > Rows and Columns > Row Height > Maximum = {current.row.height}

      Any help would be awesome.

    • #63841
      sam-baldus
      Member

      var d = app.activeDocument, MT= d.stories.everyItem().tables.everyItem().getElements();

      for (j = 0; j< MT.length; j++)

      for (k = 0; k< MT[j].rows.length; k++) {
      row = MT[j].rows[k];
      row.minimumHeight = row.height;
      row.maximumHeight = row.height;
      row.autoGrow = false;
      }

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads