Skip to content

Commit

Permalink
fix #207649
Browse files Browse the repository at this point in the history
  • Loading branch information
benibenj committed Mar 14, 2024
1 parent 080f968 commit 83eb59e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/vs/base/browser/ui/tree/abstractTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1663,8 +1663,14 @@ class StickyScrollWidget<T, TFilterData, TRef> implements IDisposable {
// Sticky element container
const stickyElement = document.createElement('div');
stickyElement.style.top = `${stickyNode.position}px`;
stickyElement.style.height = `${stickyNode.height}px`;
stickyElement.style.lineHeight = `${stickyNode.height}px`;

if (this.tree.options.setRowHeight !== false) {
stickyElement.style.height = `${stickyNode.height}px`;
}

if (this.tree.options.setRowLineHeight !== false) {
stickyElement.style.lineHeight = `${stickyNode.height}px`;
}

stickyElement.classList.add('monaco-tree-sticky-row');
stickyElement.classList.add('monaco-list-row');
Expand Down

0 comments on commit 83eb59e

Please sign in to comment.