added an if in setContainers. I check if legend is displayed, if not, the height remains the same.

In my project I'm using a pie chart without legend. If I remove the legend (legend.display=false), I don't want that the size of the chart changes. If it's not useful, don't consider this pull request.

Michele