# Width of EventReference dropdown is constrained by parent container width

**URL:** <https://qa.fmod.com/t/width-of-eventreference-dropdown-is-constrained-by-parent-container-width/19408>\
**Category:** Unity\
**Tags:** unity\
**Created:** [October 17, 2022, 12:48am UTC](https://qa.fmod.com/t/width-of-eventreference-dropdown-is-constrained-by-parent-container-width/19408 "2022-10-17T00:48:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhys\_vdw](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/rhys_vdw/32/2454_2.png) [@rhys\_vdw](https://qa.fmod.com/u/rhys_vdw)\
**Post date:** [October 17, 2022, 12:48am UTC](https://qa.fmod.com/t/width-of-eventreference-dropdown-is-constrained-by-parent-container-width/19408/1 "2022-10-17T00:48:33Z")

</div>

This is generally a minor inconvenience:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7f5643023b6b2ac451a31f379caf1bcfa970880a.png)

But it becomes a real pain when I’m working in this node editor (Node Graph Processor):

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/631d968d75536cd8bdc07fc96ed8162267fed2a5.png)

Incidentally the “open in browser” folder button doesn’t open from this view.

This is a real pain point for us. I wonder if anyone on the FMOD Unity team could suggest how I might start looking at getting this working?

---

<div class="post-metadata">

**Author:** ![rhys\_vdw](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/rhys_vdw/32/2454_2.png) [@rhys\_vdw](https://qa.fmod.com/u/rhys_vdw)\
**Post date:** [October 17, 2022, 4:27am UTC](https://qa.fmod.com/t/width-of-eventreference-dropdown-is-constrained-by-parent-container-width/19408/2 "2022-10-17T04:27:05Z")

</div>

Managed to get this at least usable, but the field still doesn’t suggest a width to the node drawer. At least I can guarantee that things will draw at a sensible size.

```auto
@@ -90,6 +90,8 @@ namespace FMODUnity
                     windowRect.xMin = pathRect.xMin;
                     windowRect.position = GUIUtility.GUIToScreenPoint(windowRect.position);
                     windowRect.height = openRect.height + 1;
+ // EDIT: Add min width to popup.
+ windowRect.width = Mathf.Max(windowRect.width, 300f);
                     eventBrowser.ShowAsDropDown(windowRect, new Vector2(windowRect.width, 400));

```

One issue I encounter is that the text field draws behind the search or project buttons, but blocks clicks, so I need to click on the rightmost pixel.

I think this was the cause of the broken buttons before, but they seem to work now!

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/dcd8e9e5b0e9de49c817b49cf48cb14cf192dc7f.png)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 20, 2022, 12:18am UTC](https://qa.fmod.com/t/width-of-eventreference-dropdown-is-constrained-by-parent-container-width/19408/3 "2022-10-20T00:18:29Z")

</div>

Thank you for the suggestions, I have passed it onto our development team.
