X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fplugins%2Flegend.js;h=40a486344c5124bf0e303d29fc86bfdef6c66bf4;hb=623dd1d6e1562941750eb9f00ac28f2481b07f95;hp=8b918412089c1b3dd0b94cdc3c75495c74076a61;hpb=c76d4b2aaf806895ff8693d1060d58ce9f83c0ae;p=dygraphs.git 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