Commit 593cbc5f authored by Craig Oldford's avatar Craig Oldford

Fixed a bug where plotting a chart crashes if the placeholder doesn't have a font size

parent 3951e0c4
...@@ -737,7 +737,7 @@ Licensed under the MIT license. ...@@ -737,7 +737,7 @@ Licensed under the MIT license.
var i, axisOptions, axisCount, var i, axisOptions, axisCount,
fontDefaults = { fontDefaults = {
style: placeholder.css("font-style"), style: placeholder.css("font-style"),
size: Math.round(0.8 * (+placeholder.css("font-size").replace("px", "") || 13)), size: Math.round(0.8 * (placeholder.css("font-size") ? +placeholder.css('font-size').replace("px", "") : 13)),
variant: placeholder.css("font-variant"), variant: placeholder.css("font-variant"),
weight: placeholder.css("font-weight"), weight: placeholder.css("font-weight"),
family: placeholder.css("font-family") family: placeholder.css("font-family")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment