How to get height of vertical arrangement (in px) when height is set to Automatic

Hello,
I want to get height of a vertical arrangement (in px) When It’s height and width set to “Automatic” or “Fill parent”. When I call Vertical_Arrangement1.height event, It shows 0px. The arrangement is visible and has some components.

you cant do that, then it will return just the value, it can be percent or pixels

1 Like

It returns only 0(zero).

yes because it’s automatic

1 Like

it will resize accordingly all the components inside

2 Likes

Ok and thanks

1 Like

if you’re problem is solved then tick my post as solution, thanks

1 Like

Is this one placed in another arrangement which is hidden

1 Like

Can you show your relevant block as it is working for me

1 Like

Just tried this and got 33 as value
Note - i tried it on companion

2 Likes

Yes, It was placed in hidden arrangement. But I was making hidden arrangement visible before calling get.height block and just after it getting height.
Now, it working fine after using clock.

1 Like

As this this is executed at the same time, the arrangement hight is still on zero

And yes this is the way to go

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.