Group resize to fit contents

Sarah Reichelt sarah.reichelt at gmail.com
Sat Jan 10 22:00:45 EST 2009


On Sun, Jan 11, 2009 at 10:37 AM, David Bovill <david at architex.tv> wrote:
> I have a script that changes the locklocation of a group to false and I want
> it to "refresh" the display so that the groups border resizes to fit the
> contents of the group (as it does when you manually move a control) - can't
> figure - anyone know?

What about:

set the height of group x to the formattedHeight of group x
set the width of group x to the formattedWidth of group x

Depending on how you want it resized, you might have to store the
topLeft before resizing, then re-apply it.

Cheers,
Sarah



More information about the use-livecode mailing list