mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-23 05:03:36 +03:00
fixed #7775 - line height changing unexpectedly when zooming in/out
This commit is contained in:
parent
7491c3119f
commit
f3d3e10afb
@ -482,7 +482,7 @@ export class XTermFrontend extends Frontend {
|
||||
const scale = Math.pow(1.1, this.zoom)
|
||||
this.xterm.options.fontSize = this.configuredFontSize * scale
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
||||
this.xterm.options.lineHeight = Math.max(1, (this.configuredFontSize + this.configuredLinePadding * 2) / this.configuredFontSize * scale)
|
||||
this.xterm.options.lineHeight = Math.max(1, (this.configuredFontSize + this.configuredLinePadding * 2) / this.configuredFontSize)
|
||||
this.resizeHandler()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user