From 6b2e64ef96d83bc78de8ded323c5274dd625b63e Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 22 Feb 2022 09:12:39 -0500 Subject: [PATCH] update comment --- src/components/tab-group/tab-group.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tab-group/tab-group.ts b/src/components/tab-group/tab-group.ts index aa680fe14..12f113687 100644 --- a/src/components/tab-group/tab-group.ts +++ b/src/components/tab-group/tab-group.ts @@ -295,8 +295,8 @@ export default class SlTabGroup extends LitElement { const width = currentTab.clientWidth; const height = currentTab.clientHeight; - // offsetLeft/offsetTop cannot be used directly here due to a shadow parent issue: https://bugs.chromium.org/p/chromium/issues/detail?id=920069 - // neither can getBoundingClientRect as it gives invalid values for animating elements + // We can't used offsetLeft/offsetTop here due to a shadow parent issue where neither can getBoundingClientRect + // because it provides invalid values for animating elements: https://bugs.chromium.org/p/chromium/issues/detail?id=920069 const allTabs = this.getAllTabs(true); const precedingTabs = allTabs.slice(0, allTabs.indexOf(currentTab)); const offset = precedingTabs.reduce(