hide if invalid x

This commit is contained in:
meganrogge
2022-02-09 11:55:17 -06:00
parent e2a402d80e
commit 87675649e1
2 changed files with 9 additions and 4 deletions
@@ -111,6 +111,9 @@ export class Decoration extends Disposable implements IDecoration {
this._element.style.height = `${this.height * renderService.dimensions.scaledCellHeight}px`;
this._element.style.top = `${(this.marker.line - bufferService.buffers.active.ydisp) * renderService.dimensions.scaledCellHeight}px`;
if (this.x && this.x > bufferService.cols) {
this._element!.style.display = 'none';
}
if (this.anchor === 'right') {
this._element.style.right = this.x ? `${this.x * renderService.dimensions.scaledCellWidth}px` : '';
} else {