Contentful logo

Contentful Community

Help with sdk.window.startAutoResizer()

I created a UI extension where you can click a dropdown and add entries.

I noticed that sdk.window.startAutoResizer() doesn’t always work properly:

  • A lot of times, when adding a new entry, the iframe’s height doesn’t change, which hides some of the content.
  • When opening the dropdown, I have change the body’s minHeight manually to adapt to the height of the dropdown.

Do you have any tips to handle these issues? Would really appreciate some help here.

I managed to make it work by watching the hight manually and updating the body’s height, but now the whole thing breaks. It would be great if we can reliably have a dropdown inside an extension. Could you please advise on this? :frowning_face:

This is what happens when I open a dropdown:
image