Skip to content

Commit

Permalink
Fix condition when editor tabs scroll bar needs to be updated
Browse files Browse the repository at this point in the history
Fixes eclipse-theia#12476

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <[email protected]>
  • Loading branch information
tsmaeder committed May 2, 2023
1 parent 53c4142 commit 9b52742
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/browser/shell/tab-bars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,10 @@ export class ScrollableTabBar extends TabBar<Widget> {
content[i] = this.renderer.renderTab(renderData);
}
VirtualDOM.render(content, this.contentNode);
if (this.dynamicTabOptions && !this.isMouseOver && this.scrollBar) {
this.scrollBar.update();
if (this.scrollBar) {
if (!(this.dynamicTabOptions && this.isMouseOver)) {
this.scrollBar.update();
}
}
}

Expand Down

0 comments on commit 9b52742

Please sign in to comment.