# Computed width and height for screen

**URL:** <https://community.thunkable.com/t/computed-width-and-height-for-screen/623429>\
**Category:** Questions about Thunkable X\
**Created:** [June 18, 2020, 7:17pm UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429 "2020-06-18T19:17:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirfrancisdrake](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sirfrancisdrake/32/70212_2.png) [@sirfrancisdrake](https://community.thunkable.com/u/sirfrancisdrake)\
**Post date:** [June 18, 2020, 7:17pm UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/1 "2020-06-18T19:17:05Z")

</div>

i opened an old project and found errors about computed width and height for screen. Why have they been removed??

---

<div class="post-metadata">

**Author:** ![sirfrancisdrake](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sirfrancisdrake/32/70212_2.png) [@sirfrancisdrake](https://community.thunkable.com/u/sirfrancisdrake)\
**Post date:** [June 19, 2020, 7:34am UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/2 "2020-06-19T07:34:58Z")

</div>

i want them back!! 😃

---

<div class="post-metadata">

**Author:** ![sirfrancisdrake](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sirfrancisdrake/32/70212_2.png) [@sirfrancisdrake](https://community.thunkable.com/u/sirfrancisdrake)\
**Post date:** [June 21, 2020, 1:33pm UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/3 "2020-06-21T13:33:14Z")

</div>

☹ i had to add some code to most of my apps to get rid of the missing computedwidth and height

---

<div class="post-metadata">

**Author:** ![eddie.rebehy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eddie.rebehy/32/67993_2.png) [@eddie.rebehy](https://community.thunkable.com/u/eddie.rebehy)\
**Post date:** [June 21, 2020, 1:48pm UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/4 "2020-06-21T13:48:22Z")

</div>

The Device screen width/height block will accomplish the same things.

I’m ot sure why they were removed.

---

<div class="post-metadata">

**Author:** ![sirfrancisdrake](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sirfrancisdrake/32/70212_2.png) [@sirfrancisdrake](https://community.thunkable.com/u/sirfrancisdrake)\
**Post date:** [June 21, 2020, 2:02pm UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/5 "2020-06-21T14:02:27Z")

</div>

hi @eddie.rebehy  
yes screen width and height they work. If you put a container into another and you set the 50% of its width then you dont know how much big is… so computed width was a must!

On my android and iOs the container read prop (width or height ) dont work

---

<div class="post-metadata">

**Author:** ![eddie.rebehy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eddie.rebehy/32/67993_2.png) [@eddie.rebehy](https://community.thunkable.com/u/eddie.rebehy)\
**Post date:** [June 23, 2020, 7:41am UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/6 "2020-06-23T07:41:13Z")

</div>

Hi @sirfrancisdrake,

I have been playing around with animation to open and close accordion style sections in a continuously scrolling page with speed controlled animation on a button press to each section and showing a vertical or horizontal arrow image inside each button. The way I am doing this is by including a button to fill the desired collapsible container 1pix wide with transparent attributes so that it is invisible. The button will mimic the container height which is set to fit contents. I am then using the button calculated height block to store the value of the expanded container into a variable and using a loop referencing the variable and incrementing container size until fully opened or closed. I can do this for vertical or horizontal manipulation and the results are aesthetically impressive.

In essence what I am saying is you can include a transparent but integrated button that takes up no interfering real-estate of the container to get height/width of the container.

I thought of you and wondered if you can use this method in your application instead of the get screen height/width block that has now disappeared?

cheers.

---

<div class="post-metadata">

**Author:** ![sirfrancisdrake](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sirfrancisdrake/32/70212_2.png) [@sirfrancisdrake](https://community.thunkable.com/u/sirfrancisdrake)\
**Post date:** [June 23, 2020, 7:49am UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/7 "2020-06-23T07:49:03Z")

</div>

hi @eddie.rebehy,  
i think there was a misunderstanding !!. The screen.width and height works perfectly. In the new container list of blocks there is no “computed width and height” ☹ . These blocks were usefull to calculate runtime the width and height of the container you set as “fit” or “fill” in the design. In a couple of my app i used them and i had to find a workaround very similar to what you explained… thank a lot anyway!!

---

<div class="post-metadata">

**Author:** ![minamaestro2023kg](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@minamaestro2023kg](https://community.thunkable.com/u/minamaestro2023kg)\
**Post date:** [November 19, 2023, 10:41am UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/8 "2023-11-19T10:41:50Z")

</div>

@eddie.rebehy  
your idea is awesome, would you mind to share the project link.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:25am UTC](https://community.thunkable.com/t/computed-width-and-height-for-screen/623429/9 "2024-11-08T11:25:33Z")

</div>


