From 623dd1d6e1562941750eb9f00ac28f2481b07f95 Mon Sep 17 00:00:00 2001 From: neurot1k Date: Thu, 6 Oct 2016 10:49:08 -0700 Subject: [PATCH] Fixed attribute name typo in legend follow (#792) --- src/plugins/legend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/legend.js b/src/plugins/legend.js index 8b91841..40a4863 100644 --- a/src/plugins/legend.js +++ b/src/plugins/legend.js @@ -105,7 +105,7 @@ Legend.prototype.select = function(e) { if (legendMode === 'follow') { // create floating legend div var area = e.dygraph.plotter_.area; - var labelsDivWidth = this.legend_div.offsetWidth; + var labelsDivWidth = this.legend_div_.offsetWidth; var yAxisLabelWidth = e.dygraph.getOptionForAxis('axisLabelWidth', 'y'); // determine floating [left, top] coordinates of the legend div // within the plotter_ area -- 2.7.4