How to make a container dynamic based on size of json schema form

Hello retool community! I'm currently working on an application which has json schema form which is the only component in the container. I would like to make the container dynamic based on the length of the form and have been running into some issues. Thank you for your time and assistance!

I set the container height to auto, but I think the questions is more on how to make the json schema form dynamic based on the number of fields for the form. Thank you!

Following. I need my json schema to have dynamic height based on the length of my form.