From: Dan Vanderkam Date: Sat, 9 Feb 2013 00:54:12 +0000 (-0500) Subject: Fix part 1 of Issue 256: Annotations attachAtBottom Property X-Git-Tag: v1.0.0~89 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=43f829c9abbc248b013c5dc3682a329d51184105;p=dygraphs.git Fix part 1 of Issue 256: Annotations attachAtBottom Property --- diff --git a/plugins/annotations.js b/plugins/annotations.js index 6a24894..2ed48ca 100644 --- 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"; }