I am creating a code editor using react-codemirror2. I have the editor in a flexbox and I only want the codemirror editor to take up 100% of the remaining space in the parent div (which also contains a button and another div). The problem is once I set .CodeMirror to 100%, it becomes the height that I want it to be, but when I add enough lines, it does not scroll (like I want it to, but rather it extends beyond its container (autoresizing). I do not want this autoresize.
Any help is greatly appreciated! Thank you!