Skip to content

Commit 933026d

Browse files
authored
Fix revealTab (#15754)
Use the contentContainer for computations, because this is the DOM element passed to PerfectScrollbar on creation
1 parent ed8831e commit 933026d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/browser/shell/tab-bars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ export class ScrollableTabBar extends TabBar<Widget> {
871871
window.requestAnimationFrame(() => {
872872
const tab = this.contentNode.children[index] as HTMLElement;
873873
if (tab && this.isVisible) {
874-
const parent = this.contentNode;
874+
const parent = this.contentContainer;
875875
if (this.orientation === 'horizontal') {
876876
const scroll = parent.scrollLeft;
877877
const left = tab.offsetLeft;

0 commit comments

Comments
 (0)