diff --git a/src/models/model.ts b/src/models/model.ts index ba81d85e3..12a02026a 100644 --- a/src/models/model.ts +++ b/src/models/model.ts @@ -188,6 +188,14 @@ class Model { document.addEventListener("keydown", this.docKeyDownHandler.bind(this)); document.addEventListener("selectionchange", this.docSelectionChangeHandler.bind(this)); setTimeout(() => this.getClientDataLoop(1), 10); + this.lineHeightEnv = { + // defaults + fontSize: 12, + fontSizeSm: 10, + lineHeight: 15, + lineHeightSm: 13, + pad: 7, + }; } static getInstance(): Model {