CodeMirror 6: Setting a minimum height but allow the editor to grow

Is there a way to configure CodeMirror 6 so that I can both have the editor initially set to some minimum height, e.g. 350px, and grow once the contents exceed that height? Currently, when I set a minimum height, the container is the correct height, but the gutter and contenteditable div height is just that of a single line.

Styling .cm-scroller { overflow: auto; min-height: 350px } seems to work for me.

This is with those settings applied to the toolbar. It does grow, although the empty area of the editor can’t be clicked to activate the editor and jump to the active line.

If you have the gutter extension installed, you also need to apply the min-height to the gutter.

Would making that empty space activate the editor require a code change (or can it be done just with styling)?

What does that mean? There’s not really anything called a toolbar in this library.