# Dock handle disappearing after altering size to full screen width or height

**URL:** <https://forum.inductiveautomation.com/t/dock-handle-disappearing-after-altering-size-to-full-screen-width-or-height/82512>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 30, 2023, 7:13am UTC](https://forum.inductiveautomation.com/t/dock-handle-disappearing-after-altering-size-to-full-screen-width-or-height/82512 "2023-11-30T07:13:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liam1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@liam1](https://forum.inductiveautomation.com/u/liam1)\
**Post date:** [November 30, 2023, 7:13am UTC](https://forum.inductiveautomation.com/t/dock-handle-disappearing-after-altering-size-to-full-screen-width-or-height/82512/1 "2023-11-30T07:13:30Z")

</div>

I have a dock view which I update the size to match the size of the users screen using `system.perspective.alterDock`.

When I open the dock it correctly resizes to the screen but when I close the dock to hide it the handles disappear?

It only happens if I resize the dock to full screen ,not if I resize the dock to 80% of the screen width or height.

---

<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:** [November 30, 2023, 5:39pm UTC](https://forum.inductiveautomation.com/t/dock-handle-disappearing-after-altering-size-to-full-screen-width-or-height/82512/2 "2023-11-30T17:39:29Z")

</div>

Share all of your relevant scripts (including the one which closes the Dock).

---

<div class="post-metadata">

**Author:** ![liam1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@liam1](https://forum.inductiveautomation.com/u/liam1)\
**Post date:** [December 1, 2023, 11:19am UTC](https://forum.inductiveautomation.com/t/dock-handle-disappearing-after-altering-size-to-full-screen-width-or-height/82512/3 "2023-12-01T11:19:34Z")

</div>

Here is the onStartup script when the TrendDock is started up

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1aa298ddd0e31be1f553429e4a8672c3e724a1ad.png)

```auto
config={'size':self.page.props.dimensions.screen.height}
system.perspective.alterDock('TrendDock', config=config)

```

Here is the script on the button which closes the dock

```auto
system.perspective.toggleDock('TrendDock')

```

---

<div class="post-metadata">

**Author:** ![liam1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@liam1](https://forum.inductiveautomation.com/u/liam1)\
**Post date:** [December 1, 2023, 12:13pm UTC](https://forum.inductiveautomation.com/t/dock-handle-disappearing-after-altering-size-to-full-screen-width-or-height/82512/4 "2023-12-01T12:13:50Z")

</div>

Okay fixed this by removing this from startup.

Created a viewport binding on the view and added a onChange script to update the docksize

Works as intended now

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/61b51f331e427fd9898cc65811167aef345c57b7.png)
