`
+ toolTipTextStyle,
+ `
`
+ encodeHTML(displayableHeader)
+ '
'
+ subMarkupText,
@@ -350,6 +364,7 @@ function buildNameValue(
))
)
: wrapBlockHTML(
+ toolTipTextStyle,
(noMarker ? '' : markerStr)
+ (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle as string))
+ (noValue ? '' : wrapInlineValueHTML(
@@ -406,12 +421,14 @@ function getGap(gapLevel: number): {
}
function wrapBlockHTML(
+ textStyle: TooltipOption['textStyle'],
encodedContent: string,
topGap: number
): string {
const clearfix = '
';
const marginCSS = `margin: ${topGap}px 0 0`;
- return `
`
+ const tooltipLineHeight = getTooltipLineHeight(textStyle);
+ return `
`
+ encodedContent + clearfix
+ '
';
}
diff --git a/test/tooltip-textStyle-lineHeight.html b/test/tooltip-textStyle-lineHeight.html
new file mode 100644
index 0000000000..92de143f26
--- /dev/null
+++ b/test/tooltip-textStyle-lineHeight.html
@@ -0,0 +1,278 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+