tum-esi / wade

WoT API Development Environment built on top of thingweb.node-wot

Home Page:https://www.ei.tum.de/en/esi/home/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Editor] Monaco Editor does not resize with window

FadySalama opened this issue · comments

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.

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