tum-esi / wade

WoT API Development Environment built on top of thingweb.node-wot
https://www.ei.tum.de/en/esi/home/
MIT License
26 stars 6 forks source link

[Editor] Monaco Editor does not resize with window #88

Closed FadySalama closed 4 years ago

FadySalama commented 4 years ago

When the window is resized, the Monaco Editor does not resize to fill its container. The editor maintains its initial proportions at the moment of rendering.

miguelrk commented 4 years ago

This had already been fixed with pure css. Something broke I guess but this should work on the target editor element:

div {
  resize: vertical;
  overflow: auto;
}

An alternative is to add the following to the options property of MonacoEditor (pass it into the component as option prop)

automaticLayout: true

@Fady222 could you maybe try this? I'm having issues with electron:serve still. Thanks!

Ref: here