dCharts Widget Addon setExpandRatio issues

I am currently experiencing a problem using the dChart widget addon (wrapper for jqPlot) in Vaadin v7.5.2. Here is a snippet of the code that is giving me a headache:

ComboBox comboBox = new ComboBox();
DCharts chart = new DCharts();

VerticalLayout content = new VerticalLayout();


content.setExpandRatio(chart, 1.0f);



The problem is that when I use setExpandRatio, the chart is overflowing from the container when the page is loaded. Attached is a picture to illustrate.

When I use web developer tools to hide the ComboBox and remove the margins, the plot looks OK. So it seems the plot gets drawn before the expand ratio is set, as if it doens’t know the ComboBox is there.

However after selecting another item from the ComboBox (which loads another DataSeries), the chart is drawn within the expected boundaries and does not overflow. Also, when not setting an expand ratio or without adding the ComboBox, everything works as it should.

Has anyone ever experienced similar issues, or has any idea what I could do to fix this? Any help is of course greatly appreciated!