# \[IGN-6743\] system.perspective.alterDock can only resize one dock at a time?

**URL:** <https://forum.inductiveautomation.com/t/ign-6743-system-perspective-alterdock-can-only-resize-one-dock-at-a-time/65306>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [October 17, 2022, 7:26pm UTC](https://forum.inductiveautomation.com/t/ign-6743-system-perspective-alterdock-can-only-resize-one-dock-at-a-time/65306 "2022-10-17T19:26:14Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [December 5, 2024, 9:04am UTC](https://forum.inductiveautomation.com/t/ign-6743-system-perspective-alterdock-can-only-resize-one-dock-at-a-time/65306/25 "2024-12-05T09:04:08Z")

</div>

I recently did some Js injection around docks. I suppose it shouldnt be to hard to change it to change the dock sizes through some css class.

I dont have time this week though, and im taking a holiday soon so yh. Ping me in a month xd

Linking the post here incase someone else dables in JS/css

> [@Close a dock when opening another - detect when a dock is open?](https://forum.inductiveautomation.com/t/close-a-dock-when-opening-another-detect-when-a-dock-is-open/96661/26):
>
> oke i found a way to get all id's, gimme a sec to write it in a script mage@mazeyrat that should do it, found a way to use perspectives client functions. One of these days i'll also find the session settings maybe xd Than we wouldnt need the markdown, but no luck yet, its quite a maze to go through without any docs stuck_out_tongue ... 
> 
> > **js**
> >
> > #make the propName the key to write too in the view.custom propName = value code = """\<img style='display:none' src='/…

---

_[View the full topic](https://forum.inductiveautomation.com/t/ign-6743-system-perspective-alterdock-can-only-resize-one-dock-at-a-time/65306)._
