Change DygraphLayout so it calculates the plot area when its requested
[dygraphs.git] / dygraph-range-selector.js
index 05a5c65..5e0d218 100644 (file)
@@ -77,7 +77,7 @@ DygraphRangeSelector.prototype.resize_ = function() {
     canvas.style.height = canvas.height + 'px';  // for IE
   };
 
-  var plotArea = this.layout_.plotArea;
+  var plotArea = this.layout_.getPlotArea();
   var xAxisLabelHeight = this.attr_('axisLabelFontSize') + 2 * this.attr_('axisTickSize');
   this.canvasRect_ = {
     x: plotArea.x,