Notebook layout does not update if window resizes during its loading phase

This commit is contained in:
rebornix 2020-06-02 09:34:46 -07:00
parent ee46d06d0a
commit 730d323a7d

View file

@ -204,7 +204,7 @@ export class NotebookEditor extends BaseEditor {
return;
}
if (this._input.resource?.toString() !== this._widget?.viewModel?.uri.toString()) {
if (this._input.resource?.toString() !== this._widget?.viewModel?.uri.toString() && this._widget?.viewModel) {
// input and widget mismatch
// this happens when
// 1. open document A, pin the document