Commit 8b51279b authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix padding when rotated

parent 4e992a36
......@@ -4067,7 +4067,7 @@
$$.d3.select('body').append("g").style('visibility', 'hidden').call(axis).each(function () {
$$.d3.select(this).selectAll('text').each(function () {
var box = this.getBoundingClientRect();
if (maxWidth < box.width) { maxWidth = box.width; }
if (box.left > 0 && maxWidth < box.width) { maxWidth = box.width; }
});
}).remove();
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -270,7 +270,7 @@ c3_chart_internal_fn.getMaxTickWidth = function (id) {
$$.d3.select('body').append("g").style('visibility', 'hidden').call(axis).each(function () {
$$.d3.select(this).selectAll('text').each(function () {
var box = this.getBoundingClientRect();
if (maxWidth < box.width) { maxWidth = box.width; }
if (box.left > 0 && maxWidth < box.width) { maxWidth = box.width; }
});
}).remove();
}
......
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