Closed ocallesp closed 5 months ago
@jwmunn does this change break something on Learning ?
We should close this PR and take a different approach. The editor's API can be called directly by the host page and that's going to be more flexible than one-size-fits-all attempts to remedy this with CSS.
@jonsequitur will you expose a setSize function on your API instead? I believe this change will resolve all editor overflow issues. Learn is facing the same issue:
Who is the owner of the scroll bars? is it the iframe or the div inside?
This is what I see: The content of the iframe is bigger than the iframe: the element with class monaco-editor is se to this the size 1245px X 839px in the style sheet (side effect of calling the layout code)
this is the iframe size :
and this is the actual size of the div
Let's move this discussion to the associated issue.
https://github.com/dotnet/try/issues/1198#issuecomment-2148221113
https://github.com/dotnet/try/issues/1198
Thanks @danzhu54 for the fix suggestion