projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48cdd6c
)
Fix part 1 of Issue 256: Annotations attachAtBottom Property
author
Dan Vanderkam
<danvdk@gmail.com>
Sat, 9 Feb 2013 00:54:12 +0000
(19:54 -0500)
committer
Dan Vanderkam
<danvdk@gmail.com>
Sat, 9 Feb 2013 00:54:12 +0000
(19:54 -0500)
plugins/annotations.js
patch
|
blob
|
blame
|
history
diff --git
a/plugins/annotations.js
b/plugins/annotations.js
index
6a24894
..
2ed48ca
100644
(file)
--- a/
plugins/annotations.js
+++ b/
plugins/annotations.js
@@
-118,7
+118,7
@@
annotations.prototype.didDrawChart = function(e) {
}
div.style.left = (p.canvasx - width / 2) + "px";
if (a.attachAtBottom) {
- div.style.top = (area.h - height - tick_height) + "px";
+ div.style.top = (area.
y + area.
h - height - tick_height) + "px";
} else {
div.style.top = (p.canvasy - height - tick_height) + "px";
}