@xterm/xterm 5.6.0-beta.44 → 5.6.0-beta.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "5.6.0-beta.44",
4
+ "version": "5.6.0-beta.46",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -507,7 +507,10 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
507
507
  this.register(this.onFocus(() => this._renderService!.handleFocus()));
508
508
 
509
509
  this._viewport = this.register(this._instantiationService.createInstance(Viewport, this.element, this.screenElement));
510
- this.register(this._viewport.onRequestScrollLines(e => super.scrollLines(e, false)));
510
+ this.register(this._viewport.onRequestScrollLines(e => {
511
+ super.scrollLines(e, false);
512
+ this.refresh(0, this.rows - 1);
513
+ }));
511
514
 
512
515
  this._selectionService = this.register(this._instantiationService.createInstance(SelectionService,
513
516
  this.element,
@@ -206,7 +206,8 @@ export abstract class AbstractScrollableElement extends Widget {
206
206
 
207
207
  protected constructor(element: HTMLElement, options: ScrollableElementCreationOptions, scrollable: Scrollable) {
208
208
  super();
209
- element.style.overflow = 'hidden';
209
+ // HACK: xterm.js currnetly requires overflow to allow decorations to escape the container
210
+ // element.style.overflow = 'hidden';
210
211
  this._options = resolveOptions(options);
211
212
  this._scrollable = scrollable;
212
213
 
@@ -228,7 +229,8 @@ export abstract class AbstractScrollableElement extends Widget {
228
229
  this._domNode.className = 'xterm-scrollable-element ' + this._options.className;
229
230
  this._domNode.setAttribute('role', 'presentation');
230
231
  this._domNode.style.position = 'relative';
231
- this._domNode.style.overflow = 'hidden';
232
+ // HACK: xterm.js currnetly requires overflow to allow decorations to escape the container
233
+ // this._domNode.style.overflow = 'hidden';
232
234
  this._domNode.appendChild(element);
233
235
  this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode);
234
236
  this._domNode.appendChild(this._verticalScrollbar.domNode.domNode);