# Dynamically measure the height of a component in the editor

**URL:** <https://forums.realmacsoftware.com/t/dynamically-measure-the-height-of-a-component-in-the-editor/51257>\
**Category:** Elements\
**Created:** [September 24, 2025, 7:40am UTC](https://forums.realmacsoftware.com/t/dynamically-measure-the-height-of-a-component-in-the-editor/51257 "2025-09-24T07:40:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Massimo](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/massimo/32/25456_2.png) [@Massimo](https://forums.realmacsoftware.com/u/Massimo)\
**Post date:** [September 24, 2025, 7:40am UTC](https://forums.realmacsoftware.com/t/dynamically-measure-the-height-of-a-component-in-the-editor/51257/1 "2025-09-24T07:40:50Z")

</div>

Hi,  
in the Elements editor environment, is there a reliable way to dynamically measure the height of a component (which can change if, for example, we change the top padding or something else)? I should use that value to size the height of another element in the editor.  
Thanks!

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [September 24, 2025, 7:57am UTC](https://forums.realmacsoftware.com/t/dynamically-measure-the-height-of-a-component-in-the-editor/51257/2 "2025-09-24T07:57:46Z")

</div>

In short: no!

You can’t execute javascript in the editor, so there is no way to dynamically get the width/height of another component.

---

<div class="post-metadata">

**Author:** ![Massimo](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/massimo/32/25456_2.png) [@Massimo](https://forums.realmacsoftware.com/u/Massimo)\
**Post date:** [September 24, 2025, 8:20am UTC](https://forums.realmacsoftware.com/t/dynamically-measure-the-height-of-a-component-in-the-editor/51257/3 "2025-09-24T08:20:32Z")

</div>

Ok thanks
