# \[Feature-12695\]Provide Access To Window Dimensions In Perspective Via Page Props

**URL:** <https://forum.inductiveautomation.com/t/feature-12695-provide-access-to-window-dimensions-in-perspective-via-page-props/25438>\
**Category:** Ignition\
**Created:** [May 30, 2019, 4:09pm UTC](https://forum.inductiveautomation.com/t/feature-12695-provide-access-to-window-dimensions-in-perspective-via-page-props/25438 "2019-05-30T16:09:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschantell](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rschantell](https://forum.inductiveautomation.com/u/rschantell)\
**Post date:** [May 30, 2019, 4:09pm UTC](https://forum.inductiveautomation.com/t/feature-12695-provide-access-to-window-dimensions-in-perspective-via-page-props/25438/1 "2019-05-30T16:09:52Z")

</div>

I’m trying to create a project with a docked menu tree on the left that when an item is clicked will either open the view as a popup or open the target as the main view. IE, when the resolution is larger than 800x600, it is a popup over a plant layout view, but when the resolution is small (\<800 wide) it opens as a mobile friendly view. I think I might be able to accomplish something similar to this in an event/onStartup script if I could only find a way to grab the browser dimensions. Is this even possible? Thanks in advance

---

<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:** [May 30, 2019, 4:15pm UTC](https://forum.inductiveautomation.com/t/feature-12695-provide-access-to-window-dimensions-in-perspective-via-page-props/25438/2 "2019-05-30T16:15:55Z")

</div>

We aren’t currently providing access to the browser (viewport) dimensions. It _is_ something we plan on providing access to in the future, but I don’t have a timeframe for you.

---

<div class="post-metadata">

**Author:** ![rschantell](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rschantell](https://forum.inductiveautomation.com/u/rschantell)\
**Post date:** [May 31, 2019, 1:40pm UTC](https://forum.inductiveautomation.com/t/feature-12695-provide-access-to-window-dimensions-in-perspective-via-page-props/25438/3 "2019-05-31T13:40:24Z")

</div>

I’ve been trying to understand the perspective template and in the header there is a custom property that is called menuSize. Where is that getting populated/pulled from? I could use that in the script if I could add the same property to each view that I want to make a popup. Thanks
