# Get component height in expression

**URL:** <https://forum.inductiveautomation.com/t/get-component-height-in-expression/37398>\
**Category:** Ignition\
**Tags:** ignition79, ignition80\
**Created:** [August 5, 2020, 12:49pm UTC](https://forum.inductiveautomation.com/t/get-component-height-in-expression/37398 "2020-08-05T12:49:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [August 5, 2020, 12:49pm UTC](https://forum.inductiveautomation.com/t/get-component-height-in-expression/37398/1 "2020-08-05T12:49:30Z")

</div>

Is there any good way of accessing a component height in an expression?

If I try and to {ComponentName.height} it errors out. The only way I’ve been able to get ahold of the height is using a runScript(‘self.heigh’). This is specifically on a linear scale component.

Thanks!

---

<div class="post-metadata">

**Author:** ![alexraymond](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexraymond/32/16951_2.png) [@alexraymond](https://forum.inductiveautomation.com/u/alexraymond)\
**Post date:** [August 5, 2020, 2:35pm UTC](https://forum.inductiveautomation.com/t/get-component-height-in-expression/37398/2 "2020-08-05T14:35:47Z")

</div>

I use the same method as you. `runScript("self.getHeight()",0)`

I don’t know of another way.
