Group resize to fit contents

David Bovill david.bovill at gmail.com
Sun Jan 11 19:12:39 EST 2009


Thanks Sarah - will see if this matches Revs behaviour!

2009/1/11 Sarah Reichelt <sarah.reichelt at gmail.com>

> 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.



More information about the Use-livecode mailing list