Author Topic: shape script autosize depending on content  (Read 2249 times)

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
shape script autosize depending on content
« on: June 19, 2020, 02:36:52 am »
Hi
My shape script contains some print statements to display text.
This text varies in length and I would like to size my element depending on the length of text. Is this possible?

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: shape script autosize depending on content
« Reply #1 on: June 19, 2020, 03:42:34 am »
There's a preferredheight/width attribute you can set. It sets the fixed(!) minimum size. You can not do that dynamically (even not with an add-in).

q.