Open Willyisback opened 5 years ago
I tried to force 100% by CSS but the editor area height keep growing in size. What is the pro of 98%?
Thanks!
I also noticed this and the pro is that it looks bad. Maybe not when it is 200px height, but having it at almost full screen height makes it having big empty space at the bottom. Also, I changed it to 100%, kept resizing window to and it looks good, no issues with growing in size. Maybe they've fixed something and now it behaves correctly.
I found that using height: calc(100% - 1px)
seemed to work ok FWIW.
Why is the height of css class
.editor-container
set to 98% and not to 100%?To look up in
ngx-monaco-editor/projects/editor/src/lib/editor.component.ts
I need 100%. So I must use
::ng-deep
, which should not be used.