But as my label is set to “fit content” it will always show 0 (zero value).
Putting “width” instead of “computed width” will show “fit contents”
Reading Thunkable Docs, i thought that “computed” is ment to fullfill my problem, as it calculate dimension after rendering on screen. But it seems that i lack alot of knowledge about it.
This is just a simplified example of what i need. Actually, i have alot of labels in a column, and i need to find the highest width of collection, to later set all label`s width to that, so my labels will look like a table column. Setting an absolute value to label is not an option for my issue
Any ideeas ?
Thank you.
Yes, unfortunately it will give you back the settings that you selected for labels when using Opens event. But you can use a button as a label and you will get the computed width.
[Another way]
Instead of Screen Opens, test your code from a Button Click. When the screen is opening not all objects are defined so you need to give it a time.