Hard crash on trying to resize stack to fit content

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Hard crash on trying to resize stack to fit content

Post by stam » Sat Dec 03, 2022 2:16 am

bn wrote:
Sat Dec 03, 2022 12:15 am
Stam,

I tinkered with the resize problem and took the occasion to implement a time dependent resize routine that I took from Scott Rossis' stack "ease.rev".
The math was done (according to Scott) by Richard Herz. I just adapted the code to handle stack resizing instead of moving controls.
Very nice indeed!
I was expecting some weird geometry stuff with "phi' but if I understood correctly it's a clever way to provide an exponential/ non-linear timeline for change. Or maybe I haven't quite go it ;)

The end-result is very smooth - I'll have to spend a little time digesting resize handler once my brain has recovered from the week's work...

Thank you once again for the very cool solution!
Stam

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”