Commit fcd4bce6 authored by Ole Laursen's avatar Ole Laursen

Fix bug when both label width and height is set (fix by Ara

Anjargolian)
parent 06c7d41a
...@@ -852,7 +852,6 @@ ...@@ -852,7 +852,6 @@
axisw = opts.labelWidth || 0, axish = opts.labelHeight || 0, axisw = opts.labelWidth || 0, axish = opts.labelHeight || 0,
f = axis.font; f = axis.font;
if (opts.labelWidth == null || opts.labelHeight == null) {
ctx.save(); ctx.save();
ctx.font = f.style + " " + f.variant + " " + f.weight + " " + f.size + "px '" + f.family + "'"; ctx.font = f.style + " " + f.variant + " " + f.weight + " " + f.size + "px '" + f.family + "'";
...@@ -896,7 +895,6 @@ ...@@ -896,7 +895,6 @@
axish = Math.max(axish, t.height); axish = Math.max(axish, t.height);
} }
ctx.restore(); ctx.restore();
}
axis.labelWidth = Math.ceil(axisw); axis.labelWidth = Math.ceil(axisw);
axis.labelHeight = Math.ceil(axish); axis.labelHeight = Math.ceil(axish);
......
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