Skip to main content
Participating Frequently
October 1, 2010
Question

Scaling up the textframe on overflow

  • October 1, 2010
  • 1 reply
  • 670 views

Hello everyone,

I want to automate an template with xml. On import the template is filled with xml content.

I need some textboxes to get bigger when the text is longer. Is it possible to script this in javascript?

With regards Sander Groen.

This topic has been closed for replies.

1 reply

Inspiring
October 1, 2010

This should work: theBox.fit(FitOptions.FRAME_TO_CONTENT)

Regards

donderseAuthor
Participating Frequently
October 1, 2010

And it does!

Thanks!

tomaxxi
Inspiring
October 1, 2010

Code is ok, but it would be better to check if box has overflowed text and if it does than do fitting.

if(theBox.overflows == true)theBox.fit(FitOptions.FRAME_TO_CONTENT);

--

tomaxxi

http://indisnip.wordpress.com/