# Docked Window Size not correct on Client with Vision

**URL:** <https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455>\
**Category:** Ignition\
**Created:** [December 4, 2019, 11:14pm UTC](https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455 "2019-12-04T23:14:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmahaffey](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaffey/32/30949_2.png) [@tmahaffey](https://forum.inductiveautomation.com/u/tmahaffey)\
**Post date:** [December 4, 2019, 11:14pm UTC](https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455/1 "2019-12-04T23:14:24Z")

</div>

I’m having a hard time figuring out why my docked window’s size isn’t adjusting its size as I open up the client. The main screen seems to be scaling correctly. I don’t understand why the buttons on my docked window are bunched up in the middle.

In Project Properties, I have min size set to 800X600. In the vision property editor I have the dock position set to west. I’ve tried adjusting the properties for the project and the properties for this window and it doesn’t improve anything. Any suggestions?

 ![Snip%20of%20Docked%20Window](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/042d060023ae0935c11a59f58db1673605458405.png)

---

<div class="post-metadata">

**Author:** ![tmahaffey](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaffey/32/30949_2.png) [@tmahaffey](https://forum.inductiveautomation.com/u/tmahaffey)\
**Post date:** [December 4, 2019, 11:15pm UTC](https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455/2 "2019-12-04T23:15:51Z")

</div>

![Snip%20of%20Docked%20Window%20Config](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6333ec50a19c05f7b26e8dc34b68529fb003d573.png)

Also, here is a screenshot of how I have the window properties set

Thanks a bunch

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 4, 2019, 11:29pm UTC](https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455/3 "2019-12-04T23:29:20Z")

</div>

Your _window_ is fine - you need to set the components inside of it to the correct behavior (what that is is up to you). If you want them to stay exactly the same size, then group your buttons (if they aren’t already) and anchor group to the top or bottom (depending on where you prefer the buttons to start). If you want them to resize, group them, ensure that all the buttons inside the group are set to a relative layout mode, and then anchor _the group_ to the top and bottom of the window.

---

<div class="post-metadata">

**Author:** ![mdd](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@mdd](https://forum.inductiveautomation.com/u/mdd)\
**Post date:** [March 6, 2020, 12:00am UTC](https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455/4 "2020-03-06T00:00:04Z")

</div>

This seems to be a problem with Java’s Swing… but I found a little trick… Set your docked sidebar window “Minimum Size” to same width and height as the “Size”, and the width of the docked bar will actually resize. I have no idea why it works, but it does.

 ![Vision%20docked%20window%20resize](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/34ead9007bb0005724ffc8b6fd9003755ad532df.jpeg)  
Keep in mind this will be the same size for both large and small screens, so if you need to set this dynamically, you would have to get into python scripting…

This script doesn’t work quite right (it does resize the bar, but doesn’t get the other window to fill the gap), but at least would point you in the right direction… I threw this on a button’s actionPerformed script. (probably better placed on a Client Events Startup script)

```auto
import java.awt.Dimension
window = system.gui.getParentWindow(event)
window.setSize(java.awt.Dimension(300, 600))
window.setMinimumSize(java.awt.Dimension(300, 600))

```

Maybe you can find the appropriate method to cause a refresh by getting a full list with

```auto
window = system.gui.getParentWindow(event)
print dir(window)
# and looking in the console for the full list

```

Hope these points help everyone out until it can be fully fixed.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 29, 2021, 4:20pm UTC](https://forum.inductiveautomation.com/t/docked-window-size-not-correct-on-client-with-vision/30455/5 "2021-11-29T16:20:10Z")

</div>

Split this topic on November 29, 2021, 4:20pm UTC

A post was split to a new topic: [Issues with docked window resize](https://forum.inductiveautomation.com/t/issues-with-docked-window-resize/53533)
