# Get the browser height width in perspective session

**URL:** <https://forum.inductiveautomation.com/t/get-the-browser-height-width-in-perspective-session/31214>\
**Category:** Ignition Early Access\
**Created:** [January 10, 2020, 3:14pm UTC](https://forum.inductiveautomation.com/t/get-the-browser-height-width-in-perspective-session/31214 "2020-01-10T15:14:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [January 10, 2020, 3:14pm UTC](https://forum.inductiveautomation.com/t/get-the-browser-height-width-in-perspective-session/31214/1 "2020-01-10T15:14:49Z")

</div>

Hello  
I’d like to know is it possible to get the browser height & width run-time in perspective session?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 10, 2020, 3:24pm UTC](https://forum.inductiveautomation.com/t/get-the-browser-height-width-in-perspective-session/31214/2 "2020-01-10T15:24:28Z")

</div>

No, it’s not, although there is an open post for such a feature on the [ideas forum](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/expose-viewport-dimensions-in-perspective).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 10, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/get-the-browser-height-width-in-perspective-session/31214/3 "2020-01-10T17:38:31Z")

</div>

Be aware that pixel dimensions of various DOM elements are used in [browser fingerprinting](https://panopticlick.eff.org/), and browsers are actively trying to prevent that. Depending on javascript access to DOM dimensions is fraught with peril, or at least maintenance headaches.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [January 10, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/get-the-browser-height-width-in-perspective-session/31214/4 "2020-01-10T17:38:31Z")

</div>

So, could you please tell how to overlays component overlay on the map without causing it’s size scale when browser change size?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/67e431519e7a1a688932674461b0f27855e1f62e.png)  
For example how did you manage to maintain the zoom in out icon on map fix all the time?

1- I set z-index of map to 0 so I can now put item on map easily.  
2 - I use coordinate with percent mode so map fill all the view area and can overlay other component on it.  
3- This mode cause my elements scale and which is not wanted here.  
I’d like the size of them to be fix all the time like the map zoom button.
