Page 2 of 2

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

Posted: Sat Dec 03, 2022 2:16 am
by stam
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