Resizing a Text Field

Devin Asay devin_asay at
Tue Aug 28 10:30:55 EDT 2012

On Aug 27, 2012, at 11:11 PM, Peter Bogdanoff wrote:

> Hi, 
> Does anyone have a quick and dirty script for resizing a field to fit text content?
> Peter Bogdanoff

Here's a start:

on rawKeyUp
  set the height of fld "mytext" to the formattedHeight of fld "mytext"
  pass rawKeyUp
end rawKeyUp

You can also experiment with the formattedWidth of fields whose dontWrap property is true.



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

More information about the Use-livecode mailing list