Resized anchored Text Frame (expanded to fit overset content) overlaps following text
I'm new to UXP and the InDesign DOM and trying to write a script that will resize overset anchored Text Frames.
A snippet of my code:
thisTextFrame.fit(myInDesign.FitOptions.FRAME_TO_CONTENT);https://developer.adobe.com/indesign/dom/api/f/FitOptions/
This successfully increases the text frame's height, but the text now overlaps the text in the Story that follows the anchored Text Frame.
Is there a way of pushing the Story text down so that it follows the expanded TextFrame?
If I manually drag the Text Frame in InDesign to resize it, the Story text gets pushed down. I'd like to be able to automate this with a script.
Many thanks for any advice that can help me make progress.
