From 0c534e1eb8140e09f8d55bba7431fd4116dc9dd6 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Mon, 28 Dec 2015 17:20:08 -0500 Subject: [PATCH] Fix layout service --- src/core/core.layoutService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/core.layoutService.js b/src/core/core.layoutService.js index def2b55ae..a7f2bcfa8 100644 --- a/src/core/core.layoutService.js +++ b/src/core/core.layoutService.js @@ -179,7 +179,9 @@ bottom: 0, }; - box.update(box.options.fullWidth ? chartWidth : maxChartAreaWidth, minBoxSize.minSize.height, scaleMargin); + // Don't use min size here because of label rotation. When the labels are rotated, their rotation highly depends + // on the margin. Sometimes they need to increase in size slightly + box.update(box.options.fullWidth ? chartWidth : maxChartAreaWidth, chartHeight / 2, scaleMargin); } else { box.update(minBoxSize.minSize.width, maxChartAreaHeight); } -- 2.47.3