# Client windows dimensions

**URL:** <https://forum.inductiveautomation.com/t/client-windows-dimensions/12446>\
**Category:** Ignition\
**Created:** [December 8, 2016, 5:10pm UTC](https://forum.inductiveautomation.com/t/client-windows-dimensions/12446 "2016-12-08T17:10:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-w-t](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@c-w-t](https://forum.inductiveautomation.com/u/c-w-t)\
**Post date:** [December 8, 2016, 5:10pm UTC](https://forum.inductiveautomation.com/t/client-windows-dimensions/12446/1 "2016-12-08T17:10:40Z")

</div>

Is it possible to get the current client’s window/container dimensions? I’m looking to auto locate and size open pop-up windows if the client window is resized or docked windows are opened and the available space for pop-ups changes.

Cheers,  
Clint.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [December 8, 2016, 6:50pm UTC](https://forum.inductiveautomation.com/t/client-windows-dimensions/12446/2 "2016-12-08T18:50:08Z")

</div>

I’m using this to show window dimensions in the label:

`window = system.gui.getParentWindow(event)
windowWidth= window.size.width
windowHeight = window.size.height
#print windowWidth, windowHeight
system.gui.getParentWindow(event).getComponentForPath('Root Container.lblDimension').text = "(" + str(windowWidth) + ", " + str(windowHeight) + ")"
`  
[attachment=0]Capture.PNG[/attachment]

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 20, 2018, 4:48am UTC](https://forum.inductiveautomation.com/t/client-windows-dimensions/12446/3 "2018-12-20T04:48:28Z")

</div>

Note: this will get the size of the window that the button is contained in. If you have docked windows mixed with floating windows, if won’t be the full size of all of these combined.
