monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

Flex shrink does not work

Open MatthewCaseres opened this issue 4 years ago • 3 comments

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.

MatthewCaseres avatar Nov 28 '20 15:11 MatthewCaseres

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

suren-atoyan avatar Jan 12 '21 21:01 suren-atoyan

Thanks for getting back to me! I suspect this is the issue you were referencing. https://github.com/microsoft/monaco-editor/issues/1482

MatthewCaseres avatar Jan 13 '21 07:01 MatthewCaseres

Yes, yes. I forgot to share the link :smile:

suren-atoyan avatar Jan 13 '21 11:01 suren-atoyan

I am closing this due to inactivity, feel free to re-open it

suren-atoyan avatar Jan 19 '24 17:01 suren-atoyan