Keeping a fixed aspect ratio while resizing a stack

Scott Rossi scott at
Fri Nov 20 17:56:21 EST 2015

Try this (in your message box):

go url ""


Scott Rossi
Creative Director
Tactile Media, UX/UI Design

On 11/20/15, 2:24 PM, "use-livecode on behalf of Howard Bornstein"
<use-livecode-bounces at on behalf of
bornstein at> wrote:

>I would like to let users of my stack resize it while keeping a fixed
>aspect ratio of the stack. As far as I have been able to find, this is not
>possible. There doesn't seem to be any way to constrain a stack while it
>being resized. Putting statements in the resizestack handler to accomplish
>this do bad things. I can change the size of the stack to reflect the
>aspect ratio I want *after* the resize is done, but not during.
>I just wanted to see if anyone had found a way to do this. As an
>thought, I see that LC *does* allow this option if you hold down the
>shift-key while resizing the stack (shift-drag also keeps the aspect ratio
>of certain objects during a resize).
>Is this a feature of LC itself or is LC simply using an OS capability (I'm
>running under OS X) to handle this?
>Would there be a way to tap into LC's ability to constrain the stack
>resizing? The only other way I can think of is to somehow simulate the
>pressing of the shift key while resizing is taking place, but I don't see
>any way to do this either.
>Any insight would be appreciated.
>Howard Bornstein
>use-livecode mailing list
>use-livecode at
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:

More information about the use-livecode mailing list