editor: horizontal scrolling issues with maximized code editor
This commit is contained in:
parent
ddcf186a66
commit
e7aa598f8b
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue