Support non-default font sizes in notebooks (#6222)

* Support non-default font sizes notebooks

* pr comments
This commit is contained in:
Chris LaFreniere
2019-07-01 16:10:20 -07:00
committed by GitHub
parent 384d87f84d
commit e8d4fba3c0
2 changed files with 9 additions and 8 deletions

View File

@@ -226,7 +226,7 @@ export class CodeComponent extends AngularDisposable implements OnInit, OnChange
setTimeout(() => this._layoutEmitter.fire(), 250);
}));
this._register(this._configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('editor.wordWrap')) {
if (e.affectsConfiguration('editor.wordWrap') || e.affectsConfiguration('editor.fontSize')) {
this._editor.setHeightToScrollHeight(true);
}
}));