# Plugin window min/max dimensions

**URL:** <https://iplug2.discourse.group/t/plugin-window-min-max-dimensions/433>\
**Category:** Uncategorized\
**Created:** [15 July 2021 09:28 UTC](https://iplug2.discourse.group/t/plugin-window-min-max-dimensions/433 "2021-07-15T09:28:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alechk4](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alechk4](https://iplug2.discourse.group/u/Alechk4)\
**Post date:** [15 July 2021 09:28 UTC](https://iplug2.discourse.group/t/plugin-window-min-max-dimensions/433/1 "2021-07-15T09:28:37Z")

</div>

What is the difference between the constants PLUGIN\_MIN(MAX)\_WIDTH(HEIGHT) and calling IPlugEditorDelegate::SetSizeConstraints?

---

<div class="post-metadata">

**Author:** ![Alechk4](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alechk4](https://iplug2.discourse.group/u/Alechk4)\
**Post date:** [15 July 2021 09:51 UTC](https://iplug2.discourse.group/t/plugin-window-min-max-dimensions/433/2 "2021-07-15T09:51:57Z")

</div>

My main concern is that when I resize the window below PLUG\_WIDTH or PLUG\_HEIGHT, the UI correctly resizes but the host (Reaper) shows scrollbars that scroll into white, outside of the bounds of GetBounds().

Edit:  
I also tried in FL Studio. Instead of showing scrollbars, it forbids resizing any dimension below the PLUG\_WIDTH/HEIGHT, even if PLUG\_MIN\_WIDTH/HEIGHT is much less.

---

<div class="post-metadata">

**Author:** ![Alechk4](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alechk4](https://iplug2.discourse.group/u/Alechk4)\
**Post date:** [19 July 2021 14:21 UTC](https://iplug2.discourse.group/t/plugin-window-min-max-dimensions/433/3 "2021-07-19T14:21:28Z")

</div>

> [@Alechk4](#):
>
> sizes but the host (Reaper) shows scrollbars that scroll into white, outside of the bounds of GetBounds().

Update: This happened because I was using IEditorDelegate::SetSizeConstraints().  
With PLUG\_MIN\_WIDTH/HEIGHT only, it works properly.
