Open ocallesp opened 6 months ago
Additional context: this is specific to the marketing page.
The editor can be found here: https://dotnet.microsoft.com/en-us/languages
The fix should go in the host
The element that needs to be sized is here:
It should be sized using the Monaco API, which is exposed by trydotnet.js.
@jonsequitur can you point me to the Monaco API for sizing?
When does the editor set the size by default?
It seems to be called twice: once when it initializes and then again when I set the size with setSize
Is it possible for me to pass in my size preferences to the editor via createSessionWithProjectAndOpenDocument
?
@danzhu54 you cannot pass the size of the editor via createSessionWithProjectAndOpenDocument
This is needed in order to improve the UI.
In production it looks seamless
however with the new version we can see some unnecessary overflow