Reply To: FIT TextFrame to it's Contents by Java Script

#81010
Peter Kahrel
Participant

In the object browser in the ESTK (or any of the other available object-model overviews) select textFrame. The in textFrame’s properties, look through the list — you’ll see fit at some point. Click it to follow through the properties/arguments of ‘fit’ and eventually you come up with something like this (where

myFrame

is a reference to a text frame):

myFrame.fit (FitOptions.FRAME_TO_CONTENT);

I didn’t know you can fit a frame by clicking twice on an anchor, and it doesn’t work for me. Could you elaborate?

Peter

This article was last modified on January 22, 2016

Comments (0)

Loading comments...