# Plugin resize via JS

**URL:** <https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [April 19, 2021, 4:24pm UTC](https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834 "2021-04-19T16:24:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandr\_Stroganov](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/alexandr_stroganov/32/2710_2.png) [@Alexandr\_Stroganov](https://forums.creativeclouddeveloper.com/u/Alexandr_Stroganov)\
**Post date:** [April 19, 2021, 4:24pm UTC](https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834/1 "2021-04-19T16:24:04Z")

</div>

Hi,  
I make additional custom panels with width and height parameters in my plugin. I want to create some presets for users with these parameters. Can I change the plug-in size in UXP using js?

It could be done with this code for CEP:

```
CSInterface.prototype.resizeContent = function(width, height) {
    window. __adobe_cep__.resizeContent(width, height);
};

```

Does UXP have something similar?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [April 20, 2021, 3:01am UTC](https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834/2 "2021-04-20T03:01:58Z")

</div>

UXP does not currently have any mechanism for controlling the size of the panels dynamically.

---

<div class="post-metadata">

**Author:** ![Alexandr\_Stroganov](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/alexandr_stroganov/32/2710_2.png) [@Alexandr\_Stroganov](https://forums.creativeclouddeveloper.com/u/Alexandr_Stroganov)\
**Post date:** [December 9, 2022, 6:21am UTC](https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834/3 "2022-12-09T06:21:35Z")

</div>

Have there been any changes in 2022?  
Is there any plan to add such functionality in the future if it hasn’t been added yet?

---

<div class="post-metadata">

**Author:** ![photonic](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/photonic/32/2513_2.png) [@photonic](https://forums.creativeclouddeveloper.com/u/photonic)\
**Post date:** [December 29, 2022, 7:33pm UTC](https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834/4 "2022-12-29T19:33:33Z")

</div>

Hello Kerri,

Can we have this feature soon? CEP used to do it very good and it was very usefl, specially for my user experience with my customers. My plugin needs it some how.

---

<div class="post-metadata">

**Author:** ![photonic](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/photonic/32/2513_2.png) [@photonic](https://forums.creativeclouddeveloper.com/u/photonic)\
**Post date:** [May 23, 2023, 6:02pm UTC](https://forums.creativeclouddeveloper.com/t/plugin-resize-via-js/2834/5 "2023-05-23T18:02:11Z")

</div>

@kerrishotts any news about this? Users that has low resolution monitors need this some how to make it work better and make my “compact mode” available on my plugin.
