Skip to content

Commit

Permalink
Merge pull request #5099 from Tyriar/tyriar/overflow
Browse files Browse the repository at this point in the history
Remove overflow to allow decorations outside terminal
  • Loading branch information
Tyriar authored Jul 11, 2024
2 parents f3bfe80 + 5530364 commit cbcd195
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vs/base/browser/ui/scrollbar/scrollableElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export abstract class AbstractScrollableElement extends Widget {

protected constructor(element: HTMLElement, options: ScrollableElementCreationOptions, scrollable: Scrollable) {
super();
element.style.overflow = 'hidden';
// HACK: xterm.js currnetly requires overflow to allow decorations to escape the container
// element.style.overflow = 'hidden';
this._options = resolveOptions(options);
this._scrollable = scrollable;

Expand All @@ -228,7 +229,8 @@ export abstract class AbstractScrollableElement extends Widget {
this._domNode.className = 'xterm-scrollable-element ' + this._options.className;
this._domNode.setAttribute('role', 'presentation');
this._domNode.style.position = 'relative';
this._domNode.style.overflow = 'hidden';
// HACK: xterm.js currnetly requires overflow to allow decorations to escape the container
// this._domNode.style.overflow = 'hidden';
this._domNode.appendChild(element);
this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode);
this._domNode.appendChild(this._verticalScrollbar.domNode.domNode);
Expand Down

0 comments on commit cbcd195

Please sign in to comment.