# Resizing the height of a north docked window automatically with display screen size

**URL:** <https://forum.inductiveautomation.com/t/resizing-the-height-of-a-north-docked-window-automatically-with-display-screen-size/60541>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 9, 2022, 12:44pm UTC](https://forum.inductiveautomation.com/t/resizing-the-height-of-a-north-docked-window-automatically-with-display-screen-size/60541 "2022-06-09T12:44:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzahin](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fzahin](https://forum.inductiveautomation.com/u/fzahin)\
**Post date:** [June 9, 2022, 12:44pm UTC](https://forum.inductiveautomation.com/t/resizing-the-height-of-a-north-docked-window-automatically-with-display-screen-size/60541/1 "2022-06-09T12:44:33Z")

</div>

I have a screen which has a window docked to the north and is used for containing navigation buttons and titles, etc. and along with that I have a floating window which is my main screen. I am trying to get the north docked window to adjust its height when the display screen changes. Currently it just adjust its width and not height and I understand docked windows adjust either height or width but not both unlike maximized windows. Is there a way I can get around that? Currently what I am looking for is to have the docked window : floating window = 5:49, that is docked window height = (5/54) of display screen height pixel. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![obober](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/obober/32/67865_2.png) [@obober](https://forum.inductiveautomation.com/u/obober)\
**Post date:** [June 24, 2022, 7:20pm UTC](https://forum.inductiveautomation.com/t/resizing-the-height-of-a-north-docked-window-automatically-with-display-screen-size/60541/2 "2022-06-24T19:20:16Z")

</div>

I managed to change the height of a docked window by writing to the `Size` property of the docked window:

```auto
import java.awt.Dimension
event.source.parent.parent.parent.parent.size = java.awt.Dimension(800, 200)

```

I just threw this onto a button on the docked window and watched the height change. Obviously you’ll have to use a different component reference, etc.
