From 914f540a4369c8b1dffcff8f5d60d35dee4ff51b Mon Sep 17 00:00:00 2001 From: Hakeem Date: Mon, 25 Nov 2024 09:31:36 -0800 Subject: [PATCH] fix(docs-infra): fix cards not shown if we hit the API page without active API tab (#58883) since we are only updating the members margin at the constructing phase, we should not disable this operation if user hit the page with tabs different than API active, otherwise if user switched to the API page he won't see the cards since members margin equals zero and docs viewer won't be shown Resolves #58882 PR Close #58883 --- .../api-reference-details-page.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.ts b/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.ts index 1a4dcf94639..2b6cb8cb27c 100644 --- a/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.ts +++ b/adev/src/app/features/references/api-reference-details-page/api-reference-details-page.component.ts @@ -110,9 +110,7 @@ export default class ApiReferenceDetailsPage { this.appScroller.disableScrolling = true; afterNextRender({ write: () => { - if (this.isApiTabActive()) { - this.scrollHandler.updateMembersMarginTop(API_REFERENCE_TAB_BODY_CLASS_NAME); - } + this.scrollHandler.updateMembersMarginTop(API_REFERENCE_TAB_BODY_CLASS_NAME); }, }); }