editor: horizontal scrolling issues with maximized code editor

This commit is contained in:
jean-emmanuel 2022-11-29 08:05:01 +01:00
parent ddcf186a66
commit e7aa598f8b
2 changed files with 6 additions and 1 deletions

View file

@ -5,6 +5,9 @@
- launcher
- print a qrcode when the server starts to help connecting mobile devices
- editor
- horizontal scrolling issues with maximized code editor
## 1.20.0
- bug fixes

View file

@ -202,8 +202,10 @@ class CodeEditor {
this.editor.fullscreen = this.field.classList.toggle('fullscreen')
this.editor.setOptions({maxLines: this.editor.fullscreen ? 0 : 30})
window.dispatchEvent(new Event('resize'))
this.field.style.setProperty('--prefix', this.editor.fullscreen ? '"' + this.widget.getProp('id') + '."' : '')
setTimeout(()=>{
window.dispatchEvent(new Event('resize'))
})
if (this.editor.fullscreen) {
this.parent.parentContainer.classList.add('editor-breakout')