I’m trying to get CodeMirror widget size following a flexbox layout, so stretching with window is resizing, but I don’t want thet the widget resizes itself when I add text inside.
If I put a fixed size on widget (i.e. 470 px) it doesn’t stretch with window resize, and when I type on editor the scrollbars appears correctly.
If I put 100% size on widget it DOES stretch with window resize but then when I type text inside itl grows without scrollbars, which I don’t want to happen.
Is there a solution for it ?