Fix small regression in behavior on plugin CSS (issue 315)
authorDan Vanderkam <danvk@google.com>
Tue, 10 Apr 2012 22:50:18 +0000 (18:50 -0400)
committerDan Vanderkam <danvk@google.com>
Tue, 10 Apr 2012 22:50:18 +0000 (18:50 -0400)
plugins/legend.js

index 9e4650e..09ed2a0 100644 (file)
@@ -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",