# Returning group height and width (node-red-dashboard)?

**URL:** https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895
**Category:** General
**Created:** [27 January 2021 21:00 UTC](https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895 "2021-01-27T21:00:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)
#### Post date: [27 January 2021 21:00 UTC](https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895/1 "2021-01-27T21:00:57Z")

</div>

Is it possible to use the ui\_template node to get a group size?

I found this [StackOverflow post](https://stackoverflow.com/questions/51983313/node-red-dashboard-determine-width-and-height-of-a-group) but I am not seeing it work, at least not on firefox...

Is there a proper way to do it?

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [27 January 2021 21:11 UTC](https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895/2 "2021-01-27T21:11:26Z")

</div>

The question is - what you are trying to do with those values?  
If you try to change some group element properties from inside out it ends with chaos cos pre-calculated values for all other elements in this and in other groups will fail due the how whole dashboard is build up.

---

<div class="post-metadata">

### Author: ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)
#### Post date: [27 January 2021 21:13 UTC](https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895/3 "2021-01-27T21:13:47Z")

</div>

I have an iframe that I want to resize based on returned values...  
I do not think that will have an effect on other groups (of course I would need to watch out for the text I have above the map)...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8eeb7af9068115728c91af4b665eb73e234f39d8.jpeg)

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [27 January 2021 21:18 UTC](https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895/4 "2021-01-27T21:18:56Z")

</div>

You can explore the element sizes with development tools. And then apply those values to the iframe as needed cos the container is always with that size. It is not dynamic so the measurement in every deploy is not necessary. Only if you change the layout, you'll nee to to it again.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [10 February 2021 21:19 UTC](https://discourse.nodered.org/t/returning-group-height-and-width-node-red-dashboard/39895/5 "2021-02-10T21:19:31Z")

</div>

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