diff --git a/code/lib/preview-api/src/modules/preview-web/WebView.ts b/code/lib/preview-api/src/modules/preview-web/WebView.ts index fa6a823bb0ba..6f02568934c3 100644 --- a/code/lib/preview-api/src/modules/preview-web/WebView.ts +++ b/code/lib/preview-api/src/modules/preview-web/WebView.ts @@ -84,6 +84,10 @@ export class WebView implements View { this.showMain(); this.showDocs(); this.applyLayout('fullscreen'); + + document.documentElement.scrollTop = 0; + document.documentElement.scrollLeft = 0; + return this.docsRoot(); }