diff --git a/source/nodejs/adaptivecards/src/card-elements.ts b/source/nodejs/adaptivecards/src/card-elements.ts index 645d2a072d..975b24d921 100644 --- a/source/nodejs/adaptivecards/src/card-elements.ts +++ b/source/nodejs/adaptivecards/src/card-elements.ts @@ -1405,8 +1405,8 @@ export class TextBlock extends BaseTextBlock { // Looks like 1.33 is the magic number to compute line-height // from font size. this._computedLineHeight = - this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType)) * - 1.33; + Math.ceil(this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType)) * + 1.33); } targetElement.style.lineHeight = this._computedLineHeight + "px";