Adjusting the size of cards in a stack

Robert Brenstein rjb at robelko.com
Tue Jul 8 13:31:19 EDT 2014


On 08.07.2014 at 9:44 Uhr -0700 Peter Haworth apparently wrote:
>I tried that, using the formattedwidth and formattedHeight of the card as
>theCardWIdth and theCardHeight (plus a few extra pixels for aesthetics).
>
>Strangely, that works for one card but the height is incorrect ( less than
>it should be) for the other card. Maybe a bug?
>
>To my way of thinking, the way this should work is that stacks should have
>a lockLocation property and then I could simply set it to true, then set
>the height and width without worrying about the stack moving.
>
>Pete

I wonder whether you are not trying to get ahead of LiveCode. When 
preopen thingies are running, the windows is not fully build yet (or 
has that changed), so normally one does not need to hide anything. 
But then by the same logic formattedwidth but not be "formatted" yet.

When you have 2 cards of different sizes, it might be simpler to just 
have two stacks (substacks) and switch between them rather than 
fiddle with resizing.

RObert




More information about the use-livecode mailing list