Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ export class WebviewViewPane extends ViewPane {
if (this.isBodyVisible()) {
this.activate();
this._webview.value?.claim(this, getWindow(this.element), undefined);
// Lay out the webview immediately after claiming so that it is
// positioned over the current view container before the next paint.
// Without this, the overlay container may briefly become visible at
// stale coordinates from a previous layout (for example, when the
// pane was last shown in a different part of the workbench), causing
// a one-frame flash in the wrong location. See #243038.
if (this._container) {
this.layoutWebview();
}
} else {
this._webview.value?.release(this);
}
Expand Down