diff --git a/jquery.flot.js b/jquery.flot.js index 5a980e1..d4ed35b 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -762,8 +762,6 @@ Licensed under the MIT license. family: placeholder.css("font-family") }; - fontDefaults.lineHeight = fontDefaults.size * 1.15; - axisCount = options.xaxes.length || 1; for (i = 0; i < axisCount; ++i) { @@ -780,6 +778,9 @@ Licensed under the MIT license. if (!axisOptions.font.color) { axisOptions.font.color = axisOptions.color; } + if (!axisOptions.font.lineHeight) { + axisOptions.font.lineHeight = Math.round(axisOptions.font.size * 1.15); + } } } @@ -799,6 +800,9 @@ Licensed under the MIT license. if (!axisOptions.font.color) { axisOptions.font.color = axisOptions.color; } + if (!axisOptions.font.lineHeight) { + axisOptions.font.lineHeight = Math.round(axisOptions.font.size * 1.15); + } } }