monaco-react
monaco-react copied to clipboard
Flex shrink does not work
When resizing container the editor will grow if flex item and flex grow, but will not shrink.
https://codesandbox.io/s/sleepy-fire-rxbez?file=/src/App.js
Make the window wider and then shrink it to see that the editor is larger than it's container.
Hello @MatthewCaseres
Sorry for such a late answer. I examined your example, and yes, it doesn't work as expected. Also, I just found this issue on the original monaco repo, check this out. So, I reckon, the actual problem is related to the monaco itself, rather than it's related to the wrapper
Thanks for getting back to me! I suspect this is the issue you were referencing. https://github.com/microsoft/monaco-editor/issues/1482
Yes, yes. I forgot to share the link :smile:
I am closing this due to inactivity, feel free to re-open it