• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adjust a table to a textframe

New Here ,
Jul 07, 2014 Jul 07, 2014

Copy link to clipboard

Copied

Hello,

I am trying to write a script to adjust any table to a textframe.

Capture.JPG

My problem is when i apply the script, the row3 that contains two lines is cut, and we can only see the first line even though there is enough space between the table and the textframe.

All the cells are unifomized.

Thank you for your help.

Kind regards,

TOPICS
Scripting

Views

211

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 07, 2014 Jul 07, 2014

Copy link to clipboard

Copied

LATEST

What does "adjust to a text frame mean" Your picture suggests you want to adjust the height to match that of the text frame -- is that correct?

To do that, you need to adjust each row; if you simply change the height of the table itself, the rows will indeed be adjusted to be of equal height. So, to achieve your goal, you need to calculate the position of the current bottom of the table, subtract that from the height of the frame and then divide by the number of rows to get an increment for each row.

Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines