From 43f829c9abbc248b013c5dc3682a329d51184105 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 8 Feb 2013 19:54:12 -0500 Subject: [PATCH] Fix part 1 of Issue 256: Annotations attachAtBottom Property --- plugins/annotations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.7.4