Skip to content

Commit

Permalink
GH-8361: Fixed editor resizing issue in Output.
Browse files Browse the repository at this point in the history
Closes #8361.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
  • Loading branch information
Akos Kitta authored and kittaakos committed Aug 18, 2020
1 parent 3616b0a commit 9d2dcd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/output/src/browser/output-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ export class OutputWidget extends BaseWidget implements StatefulWidget {
}
}

protected onAfterShow(msg: Message): void {
super.onAfterShow(msg);
this.onResize(Widget.ResizeMessage.UnknownSize); // Triggers an editor widget resize. (#8361)
}

get onStateChanged(): Event<OutputWidget.State> {
return this.onStateChangedEmitter.event;
}
Expand Down

0 comments on commit 9d2dcd0

Please sign in to comment.