-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Prevent flicker when opening a webview in a panel #270777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
to prevent a flicker when it opens
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @bpaseroMatched files:
|
| } | ||
|
|
||
| protected override showComposite(composite: Composite): void { | ||
| this.layoutEmptyMessage(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter is mandatory, because at that point, this.getActiveComposite() still returns null (for overlay webviews at least)
mjbvz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Adding @benibenj for a proper review. |
|
@microsoft-github-policy-service rerun |
Because the empty message div is hidden AFTER the actual webview is layout, the first webview layout occurs while it's placed outside of the workbench (at the bottom on the empty message div).
So another layout is required to place it correctly, leading to a flicker
fix #270776