From 094a979ba50d7e53278a10f9dc02117fcbea1b73 Mon Sep 17 00:00:00 2001 From: Tropicalista Date: Thu, 20 Nov 2014 15:41:28 +0100 Subject: [PATCH] Added back axisY inner This commit readd back the axisY option --- src/size.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/size.js b/src/size.js index 0ec9ab0..3bcc23d 100644 --- a/src/size.js +++ b/src/size.js @@ -22,7 +22,7 @@ c3_chart_internal_fn.getCurrentPaddingLeft = function (withoutRecompute) { } else if (config.axis_rotated) { return !config.axis_x_show ? 1 : Math.max(ceil10($$.getAxisWidthByAxisId('x', withoutRecompute)), 40); } else { - return !config.axis_y_show ? 1 : ceil10($$.getAxisWidthByAxisId('y', withoutRecompute)); + return !config.axis_y_show || config.axis_y_inner ? 1 : ceil10($$.getAxisWidthByAxisId('y', withoutRecompute)); } }; c3_chart_internal_fn.getCurrentPaddingRight = function () { @@ -33,7 +33,7 @@ c3_chart_internal_fn.getCurrentPaddingRight = function () { } else if (config.axis_rotated) { return defaultPadding + legendWidthOnRight; } else { - return (!config.axis_y2_show ? defaultPadding : ceil10($$.getAxisWidthByAxisId('y2'))) + legendWidthOnRight; + return (!config.axis_y2_show || config.axis_y2_inner ? defaultPadding : ceil10($$.getAxisWidthByAxisId('y2'))) + legendWidthOnRight; } };