Quellcode durchsuchen

[editor] Have the AceEditor component fill the container space

Johan Ahlen vor 4 Jahren
Ursprung
Commit
4eabc4e89e

+ 1 - 0
desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceEditor.scss

@@ -3,6 +3,7 @@
 
 .ace-editor-component {
   height: 100%;
+  width: 100%;
   text-align: left;
   color: $fluid-black;
 

+ 0 - 3
desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceEditor.vue

@@ -105,9 +105,6 @@
           });
       }
 
-      const height = localStorage.getItem('ace.editor.custom.height') || '128';
-      (<HTMLElement>this.$el).style.height = height + 'px';
-
       editorElement.textContent = this.initialValue;
       const editor = <Ace.Editor>ace.edit(editorElement);