Iām using a select input in my plugin. When opening the menu and itās filled with a lot of items it causes the iframe to grow probably as large as all the items in the menu while the menu size is maxed on 300px. When you scroll down (in the menu) the space decreases until you reach the last item.
Iāve tried using the SelectField, the UIās SelectInput and an external select package. All have this issue.
This behavior is not really a bug, but not really a feature either⦠It is just an unfortunate quirk of how the plugin SDK works. It has to encapsulate the plugin in an iframe for security, but because the iframe is its own separate DOM, the SDK is always trying to āguessā how tall it should be. It works fine for simpler use cases, but strange things can happen depending on how your select field works, i.e. whether itās a virtualized list or actually a huge long element in the iframe DOM. Youāre not doing anything wrong, itās just something that requires some manual effort to work around =/
Thankfully, the plugin SDK exposes some sizing utilities like ctx.stopAutoResizer() and ctx.setHeight() so you can manually control iframe sizing as needed in situations like this. Basically, on dropdown open, youād stop the autosizer and manually set a sane pixel height (somewhere around 300-500, probably). Then youād reverse that once the dropdown is closed and let the autosizer take over again.
Does that help at all? Let me know if you need more specific guidance and I can try to PR it in your specific plugin? (Itād have to be early-mid next week though)