projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c76d4b2
)
Fixed attribute name typo in legend follow (#792)
author
neurot1k
<sendmikestuff@gmail.com>
Thu, 6 Oct 2016 17:49:08 +0000
(10:49 -0700)
committer
Dan Vanderkam
<danvdk@gmail.com>
Thu, 6 Oct 2016 17:49:08 +0000
(13:49 -0400)
src/plugins/legend.js
patch
|
blob
|
blame
|
history
diff --git
a/src/plugins/legend.js
b/src/plugins/legend.js
index
8b91841
..
40a4863
100644
(file)
--- 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