I need to resize a page (vertically) until a text fits. I thought I use the autosize property of the text frame.
So I set
and then I resize the page by factor 1.1 until there is no more overset.
The problem is that the text frame jumps to the size of the page (actually the pasteboard) but then the height does not grow when I resize the page. (The same is true in the GUI).
It seems to be an updating problem. I solved it by inserting a character in my text frame and then deleting it in every loop. But this seems rather silly. How can I get my frame to autoresize after size of page changes?