# How to determine canvas height and width?

**URL:** <https://community.thunkable.com/t/how-to-determine-canvas-height-and-width/467475>\
**Category:** Questions about Thunkable X\
**Created:** [February 16, 2020, 7:58am UTC](https://community.thunkable.com/t/how-to-determine-canvas-height-and-width/467475 "2020-02-16T07:58:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [February 16, 2020, 7:58am UTC](https://community.thunkable.com/t/how-to-determine-canvas-height-and-width/467475/1 "2020-02-16T07:58:09Z")

</div>

Is there any function to get the height and width of a canvas?

„from canvas get height…“ you only get „fill container“ or „80%“ but not the absolute number of pixels.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [February 16, 2020, 1:02pm UTC](https://community.thunkable.com/t/how-to-determine-canvas-height-and-width/467475/2 "2020-02-16T13:02:45Z")

</div>

Unfortunately, there is no such function. Moreover, the canvas coordinate system does not match the screen coordinates, which in my opinion is a disadvantage. For example, we can’t precisely position components on top of the canvas for this reason.

---

<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:41am UTC](https://community.thunkable.com/t/how-to-determine-canvas-height-and-width/467475/3 "2024-11-08T11:41:01Z")

</div>


