Skip to content

Commit ad17b84

Browse files
authored
Layout after setting content (microsoft#187019)
1 parent 51cf6a0 commit ad17b84

File tree

2 files changed

+51
-72
lines changed

2 files changed

+51
-72
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ export class GettingStartedPage extends EditorPane {
540540

541541
const media = stepToExpand.media;
542542
const mediaElement = $<HTMLImageElement>('img');
543+
clearNode(this.stepMediaComponent);
543544
this.stepMediaComponent.appendChild(mediaElement);
544545
mediaElement.setAttribute('alt', media.altText);
545546
this.updateMediaSourceForColorMode(mediaElement, media.path);
@@ -1162,6 +1163,10 @@ export class GettingStartedPage extends EditorPane {
11621163
this.container.classList.toggle('height-constrained', size.height <= 600);
11631164
this.container.classList.toggle('width-constrained', size.width <= 400);
11641165
this.container.classList.toggle('width-semi-constrained', size.width <= 800);
1166+
1167+
this.categoriesPageScrollbar?.scanDomNode();
1168+
this.detailsPageScrollbar?.scanDomNode();
1169+
this.detailsScrollbar?.scanDomNode();
11651170
}
11661171

11671172
private updateCategoryProgress() {

0 commit comments

Comments
 (0)