Closed matthew-blackman closed 7 months ago
I started with this patch:
The problem is that when the translation changes, the panel doesn't know to shrink:
I'm not sure how to have the panel "fit" the text when translation changes but not when the number changes.
OK I addressed it in the commit. I tried to thoroughly address the various cases of string lengths, so the solution is a bit more complex. But it seems nice at runtime and in the string length tests. @matthew-blackman can you please review and close if it seems ok?
Reviewed - I really like how you implemented this @samreid. Everything looks good in the panel, and I learned how to use the bounds of a node that isn't added to the scene. Nice work! Closing.
This happens when the number of samples increases in length. Let's make it a constant size, and leave padding when the numbers are single or double-digit.