Fix monaco editor overflowing from container (partial)

This commit is contained in:
Kristóf Tóth
2018-06-12 19:09:11 +02:00
parent 0fbaf2275e
commit 0fc90126a7
3 changed files with 8 additions and 14 deletions

View File

@ -37,17 +37,10 @@
</div>
</div>
<!--div (keyup)="setCodeState(CodeState.DIRTY); setDeployButtonState(DeployButtonState.TODEPLOY); resetAutoSaveCountdown()"
ace-editor
[(text)]="code"
[mode]="language"
[theme]="theme"
[options]="options"
class="tfw-ace-editor">
</div-->
<ngx-monaco-editor [(ngModel)]="code"
class="tfw-ace-editor"
(keyup)="setCodeState(CodeState.DIRTY); setDeployButtonState(DeployButtonState.TODEPLOY); resetAutoSaveCountdown()"
class="tfw-ide-editor"
(keyup)="setCodeState(CodeState.DIRTY);
setDeployButtonState(DeployButtonState.TODEPLOY);
resetAutoSaveCountdown()"
[options]="editorOptions"
></ngx-monaco-editor>

View File

@ -9,9 +9,10 @@
grid-template-columns: 8fr 1fr;
}
.tfw-ace-editor {
.tfw-ide-editor {
height: calc(100% - 67px);
width: 100%;
overflow: hidden;
}
.btn-group {