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

master
Craig Oldford 13 years ago
parent 3951e0c472
commit 593cbc5f19

@ -737,7 +737,7 @@ Licensed under the MIT license.
var i, axisOptions, axisCount,
fontDefaults = {
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"),
weight: placeholder.css("font-weight"),
family: placeholder.css("font-family")

Loading…
Cancel
Save