I have a menu attached to a button. The menu items in this menu change based on a user selection elsewhere in the app.

On initial render, the width is fine. If the contents change to something that is a shorter width, the menu shrinks appropriately.

If the contents change again to require a wider menu, the menu does not resize and remains stuck in the shorter width.

Is there a way to re-render the menu?