On Mon, Aug 27, 2012 at 10:11 PM, Peter Bogdanoff <bogdan...@me.com> wrote:

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

I do this differently than the other answers, and only for the height.

I stick what needs to be in the field in it, then

put the top of fld goo into oTop
set the height of fld goo to max (the height of fld goo, the
formattedHeight of fld goo)
set the top of fld goo to oTop

This is actually much simplified; I actually gather the heights for a
handful of fields that need to be side by side, and then set them, but
this sounds like it does what you need.



-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
hawkinslawf...@gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to