From: Dan Vanderkam Date: Tue, 10 Apr 2012 22:50:18 +0000 (-0400) Subject: Fix small regression in behavior on plugin CSS (issue 315) X-Git-Tag: v1.0.0~287 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=63e957d7e7e314fdd8787725c5e841dfcbadc8c3;p=dygraphs.git Fix small regression in behavior on plugin CSS (issue 315) --- diff --git a/plugins/legend.js b/plugins/legend.js index 9e4650e..09ed2a0 100644 --- a/plugins/legend.js +++ b/plugins/legend.js @@ -59,7 +59,7 @@ legend.prototype.activate = function(g, r) { "zIndex": 10, "width": divWidth + "px", "top": "0px", - "right": "2px", + "left": (g.size().width - divWidth - 2) + "px", "background": "white", "lineHeight": "normal", "textAlign": "left",