I had this original question HighCharts: How to use reflow to allow auto-resize after changing size
Where the answer I got was this block of code below:
if (!vs.chartObject.reflowNow) {
vs.chartObject.reflowNow = vs.chartObject.reflowNow = function() {
this.containerHeight = this.options.chart.height || window.window.HighchartsAdapter.adapterRun(this.renderTo, 'height');
this.containerWidth = this.options.chart.width || window.window.HighchartsAdapter.adapterRun(this.renderTo, 'width');
if (vs.expandedType === 'max') {
this.setSize(this.containerWidth, (this.containerHeight-220), true);
} else {
this.setSize(this.containerWidth, this.containerHeight, true);
}
this.hasUserSize = null;
}
}
vs.chartObject.reflowNow();
However now for some reason I'm getting undefined
on this: window.window.HighchartsAdapter
Which breaks my chart expand code now.
When I console logged window.window and expanded it, I can see that there is no longer a HighchartsAdapter
.
Do any of you HighChart developers know which method replaces HighchartsAdapter
now?