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

Scripting Tables - bug when resizing via JavaScript

Community Expert ,
Mar 25, 2025 Mar 25, 2025

Tables - can be ANY quantity / size:

 

RobertatIDTasker_4-1742950102570.pngexpand image

RobertatIDTasker_1-1742949884788.pngexpand image

 

This script - modifying ROWS:

app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().autoGrow = false;
app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().height = 2;
app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().autoGrow = true;

Will return this:

RobertatIDTasker_2-1742949895665.pngexpand image

 

LAST row in the LAST Table in EVERY Story will ALWAYS be higher than the rest:

RobertatIDTasker_5-1742950241021.pngexpand image

 

But this - modifying CELLS:

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().autoGrow = false;
app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().height = 2;
app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().autoGrow = true;

Will ALWAYS return the correct result: 

RobertatIDTasker_6-1742950299783.pngexpand image

 

 

Plain tables - no header / footer.

 

TOPICS
Bug , Scripting
104
Translate
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
Community Expert ,
Mar 25, 2025 Mar 25, 2025

Hi @Robert at ID-Tasker I can confirm this bug on MacOS 15.3.2, Indesign 20.2.

- Mark

 

P.S. is there any advantage in turning off the autoGrow. In my quick tests it seemed to work just as well (and doesn't trigger the bug, by the way) when I just turn autoGrow on first, then set the height:

app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().autoGrow = true;
app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().height = 5;

 

Translate
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
Adobe Employee ,
Mar 26, 2025 Mar 26, 2025

Hi Robert at ID-Tasker & m1b,

 

Thank you for reporting & confirming the issue. I am checking with the team to confirm if there is already a known bug for it. Meanwhile, could you please also post the issue on the InDesign UserVoice page and share the link with us here so that our engineering team can investigate it?

 

Thanks,

Harshika

Translate
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
Community Expert ,
Mar 26, 2025 Mar 26, 2025
LATEST

@HARSHIKA_VERMA

 

OK, I'll. 

 

Translate
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