Add top/bottom border overview ruler options

This commit is contained in:
Daniel Imms
2024-07-15 09:14:49 -07:00
parent a7952ff36c
commit bf41eb4204
9 changed files with 51 additions and 22 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ export class FitAddon implements ITerminalAddon , IFitApi {
const scrollbarWidth = (this._terminal.options.scrollback === 0
? 0
: (this._terminal.options.overviewRulerWidth || ViewportConstants.DEFAULT_SCROLL_BAR_WIDTH));
: (this._terminal.options.overviewRuler?.width || ViewportConstants.DEFAULT_SCROLL_BAR_WIDTH));
const parentElementStyle = window.getComputedStyle(this._terminal.element.parentElement);
const parentElementHeight = parseInt(parentElementStyle.getPropertyValue('height'));