Autoadjust height of data_editor when adding new rows

Hi! I have an app that allows users to input data using a data_editor. However, the data can easily vary from 1-10 rows to 50-100+ rows. The data_editor shows up to 10 rows by default. Is there a way to adjust the height of the editor as users add rows?

I can adjust the height based on the original data using something like:

height=(len(data)+1)*35+3

However when the user needs to add dozens of new rows it is really annoying to have to scroll to check if you have made a mistake. I know they still have to scroll in the browser but its a lot more comfortable than scrolling through a 10 row window.

Hope there is a way to achieve this! Thanks in advance!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.