Proportional resizing of stack

2006-04-04 Thread Devin Asay
I have a stack that I want to constrain to a 4:3 ratio when resizing, with a minimum stack size of 800 X 600. A search of the archives didn't yield any relevant results. If I do this (in the resizeStack handler): put the topLeft of this stack into tAnchorPnt set the height of this stack

Re: Proportional resizing of stack

2006-04-04 Thread Scott Rossi
Recently, Devin Asay wrote: I have a stack that I want to constrain to a 4:3 ratio when resizing, with a minimum stack size of 800 X 600. A search of the archives didn't yield any relevant results. ... Any suggestions for my humanities-addled, math-challenged brain? One way is to set the

Re: Proportional resizing of stack

2006-04-04 Thread Devin Asay
Thanks, Scott, for your ideas. After some experimentation, I came up with a solution that works smoothly: Set the liveResizing of the stack to true. Include in the stack script: on resizeStack pOldWdth,pOldHgt,pNewWdth,pNewHgt # maintain 4:3 ratio put the topLeft of this stack into