Fit Options - frame to content - Extendscript
I'm pretty familiar with using the FitOptions enums to, say, resize an image proportionally within its frame or snug a one-paragraph textFrame to its content by using FitOptions.FRAME_TO_CONTENT.
What I'm not sure how to do is: Given a textFrame with multiple paragraphs, how do I replicate the application behaviour of a user double clicking the bottom handle of that textFrame in ExtendScript? I guess any handle will do. It'd be all useful info.
Can it be done with inbuilt DOM methods or do I have to code it explicitly?
I understand FitOptions.FIT_FRAME_TO_CONTENT will snug a frame to the least possible X and Y values, given its content. But I only want to fit the frame to the content using its least possible Y values.
As an example, say, I've created a textFrame with geometricBounds of [2,2,7,4] in inches. If the parentStory.contents of that frame puts the bottom of the frame at four inches deep, how should I pull it up?
Thanks!
