improved layout and fixed bugs introduced new ones
This commit is contained in:
@@ -23,12 +23,15 @@ export class CodeEditorContainer extends BaseElement {
|
||||
}
|
||||
|
||||
createCodeEditor(language: string, expandDir: 'vertical' | 'horizontal') {
|
||||
var codeEditor = <CodeEditor>document.createElement("code-editor");
|
||||
codeEditor.setAttribute("language", language);
|
||||
var codeEditorContent = document.createElement("div");
|
||||
codeEditorContent.classList.add("code-editor-content");
|
||||
var codeEditor = <CodeEditor>document.createElement(language + "-code-editor");
|
||||
codeEditorContent.appendChild(codeEditor);
|
||||
|
||||
var resizeHandle = <ResizeHandle>document.createElement("resize-handle");
|
||||
resizeHandle.setAttribute("dir", expandDir);
|
||||
|
||||
this.appendChild(codeEditor);
|
||||
this.appendChild(codeEditorContent);
|
||||
this.appendChild(resizeHandle);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user