Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Dec 26, 2023
1 parent 9552058 commit ecb3a3c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@
matTooltipPosition="right"
(click)="insertSnippet(item)"
class="justify-content-start d-flex w-100">
<mat-icon>{{item.icon ?? 'grade'}}</mat-icon>
{{item.name}}
</button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export class IdeTreeComponent implements OnInit {
this.dialog.open(ParametriseActionDialog, {
width: '750px',
maxWidth: '80vw',
disableClose: true,
autoFocus: true,
data: {
name: el.name,
Expand Down Expand Up @@ -323,6 +322,17 @@ export class IdeTreeComponent implements OnInit {
setTimeout(() => {
this.scrollToActiveOpenFile();
this.clearEditorHistory.emit(true);

// Scrolling to bottom of file.
const fileExisting: number = this.openFiles.findIndex((item: any) => item.path === this.currentFileData.path);
const activeWrapper = document.querySelector('.active-codemirror-editor-' + fileExisting);
const editor = (<any>activeWrapper.querySelector('.CodeMirror')).CodeMirror;
setTimeout(() => {
editor.setCursor({
line: editor.doc.lineCount(),
ch: 0,
});
}, 1);
}, 1);

},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Angular and system imports.
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Observable, map, startWith } from 'rxjs';

// Application specific imports
Expand All @@ -23,7 +22,7 @@ import { Observable, map, startWith } from 'rxjs';
[id]="field.key"
[placeholder]="field.props.label"
matInput
rows="3"
rows="5"
[formControl]="formControl"
[matAutocomplete]="auto">
</textarea>
Expand Down

0 comments on commit ecb3a3c

Please sign in to comment.