# Plugin Dev: Ability to resize plugin panel?

**URL:** <https://community.penpot.app/t/plugin-dev-ability-to-resize-plugin-panel/7066>\
**Category:** Plugins\
**Created:** [November 19, 2024, 1:47pm UTC](https://community.penpot.app/t/plugin-dev-ability-to-resize-plugin-panel/7066 "2024-11-19T13:47:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daledesilva](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/daledesilva/32/6493_2.png) [@daledesilva](https://community.penpot.app/u/daledesilva)\
**Post date:** [November 19, 2024, 1:47pm UTC](https://community.penpot.app/t/plugin-dev-ability-to-resize-plugin-panel/7066/1 "2024-11-19T13:47:49Z")

</div>

I’m building a plugin and I know that I can specify the height of my plugin panel like this:  
penpot.ui.open(‘Window name’, ‘url’, {width: 150, height: 150});

However, I would like to resize the window after it’s already open.  
I’ve tried running that command again, but it opens a new window.

Is there anything in the API for that?

Thanks!  
Dale.

---

<div class="post-metadata">

**Author:** ![juanfran](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/juanfran/32/49_2.png) [@juanfran](https://community.penpot.app/u/juanfran)\
**Post date:** [November 19, 2024, 1:59pm UTC](https://community.penpot.app/t/plugin-dev-ability-to-resize-plugin-panel/7066/2 "2024-11-19T13:59:48Z")

</div>

Hi!

Currently, there isn’t a way to dynamically resize a plugin window after it’s already open. Running `penpot.ui.open()` again will always create a new window.

This isn’t something we had in mind when designing the API, but we’ll take this into consideration for future updates. Thank you!

---

<div class="post-metadata">

**Author:** ![daledesilva](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/daledesilva/32/6493_2.png) [@daledesilva](https://community.penpot.app/u/daledesilva)\
**Post date:** [November 19, 2024, 2:10pm UTC](https://community.penpot.app/t/plugin-dev-ability-to-resize-plugin-panel/7066/3 "2024-11-19T14:10:19Z")

</div>

Thanks for the reply 🙂

As a side note, when I run the code above from an already open window, it opens a new window, but it also duplicates the already opened window. Neither of the new windows can then be closed.  
While opening a new window would be a nice feature too, I’m guessing correct behaviour for the moment would be to not allow a plugin to open two windows?

EIther way, just letting you know.

---

<div class="post-metadata">

**Author:** ![juanfran](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/juanfran/32/49_2.png) [@juanfran](https://community.penpot.app/u/juanfran)\
**Post date:** [November 20, 2024, 11:51am UTC](https://community.penpot.app/t/plugin-dev-ability-to-resize-plugin-panel/7066/4 "2024-11-20T11:51:53Z")

</div>

Thanks for pointing this out!

You’re right, the correct behavior should be to open only one window. Having two windows open at the same time is not how it’s meant to work.
