Merge branch 'release/1.7' of https://github.com/Microsoft/azuredatastudio into release/1.7

This commit is contained in:
Karl Burtram
2019-05-07 12:35:58 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -306,7 +306,7 @@ export class CodeComponent extends AngularDisposable implements OnInit, OnChange
private setFocusAndScroll(): void {
if (this.cellModel.id === this._activeCellId) {
this._editor.focus();
this._editor.getContainer().scrollIntoView();
this._editor.getContainer().scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
}

View File

@@ -287,7 +287,7 @@ export class TextCellComponent extends CellView implements OnInit, AfterContentI
this.toggleEditMode(this.isActive());
if (this.output && this.output.nativeElement) {
(<HTMLElement>this.output.nativeElement).scrollTo();
(<HTMLElement>this.output.nativeElement).scrollTo({ behavior: 'smooth' });
}
}