Copy link to clipboard
Copied
This seems feasible:
var pb = sel[j].parentPage.bounds;
var bm = pp.marginPreferences.bottom.
. . . . . .
sel[j].visibleBounds = [sb[0], lcb, pb[2] - bm, rcb];
sel[j].fit(FitOptions.FILL_PROPORTIONALLY);
//sel[j].fit(FitOptions.FRAME_TO_CONTENT);
Copy link to clipboard
Copied
What's your question @dublove ?
Copy link to clipboard
Copied
I am researching text box adaptation columns, but the text box is too long, and I don't want it to exceed the page layout.
Copy link to clipboard
Copied
So what's your question?
Copy link to clipboard
Copied
You don’t know how much content is oveflowing, so you would have to fit the frame to the content
app.activeDocument.selection[0].fit(FitOptions.FRAME_TO_CONTENT)
Copy link to clipboard
Copied
After FitOptions.FRAME_TO_CONTENT, the text box will exceed the page margin.
I want the textFrame display a red “+” with the text “overflow text” when the sb[2] exceeds the bottom edge.
I don't know what mechanism causes it to go all the way to the bottom of the interface.
Is it possible to stop the expansion at the bottom of the page?
Copy link to clipboard
Copied
This seems feasible:
var pb = sel[j].parentPage.bounds;
var bm = pp.marginPreferences.bottom.
. . . . . .
sel[j].visibleBounds = [sb[0], lcb, pb[2] - bm, rcb];
sel[j].fit(FitOptions.FILL_PROPORTIONALLY);
//sel[j].fit(FitOptions.FRAME_TO_CONTENT);
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more