Commit 4140ceb2 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix label overwrap on left axis - #961

parent 74f65b3d
......@@ -4373,7 +4373,7 @@
svg.append('g').call(axis).each(function () {
$$.d3.select(this).selectAll('text tspan').each(function () {
var box = this.getBoundingClientRect();
if (box.left >= 0 && maxWidth < box.width) { maxWidth = box.width; }
if (maxWidth < box.width) { maxWidth = box.width; }
});
});
// TODO: time lag to get maxWidth
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -294,7 +294,7 @@ c3_chart_internal_fn.getMaxTickWidth = function (id, withoutRecompute) {
svg.append('g').call(axis).each(function () {
$$.d3.select(this).selectAll('text tspan').each(function () {
var box = this.getBoundingClientRect();
if (box.left >= 0 && maxWidth < box.width) { maxWidth = box.width; }
if (maxWidth < box.width) { maxWidth = box.width; }
});
});
// TODO: time lag to get maxWidth
......
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