How to have the width of a dynamic component?

What I’m doing doesn’t work for me.

I had the same issue sometime ago when trying to get the width or height of a dynamic component for some reason… at the end I just set the width to the original width of the reference component as I just wanted it to be a square and not some costume ratio

1 Like

It’s the normal AppInventor behaviour. The whole block must be finished before u cant get a size of components.

So if u have a main block (initialize, or function or anything else) filled with many DynamicComponents Create blocks u must wait a little after the whole block finishes its work to fetch the parameters of dynamic component.

2 Likes

try like this

2 Likes

This works, I imagine that to create new components within the componentbuilt I have to make conditionals so as not to test a loop.