[Pkg-javascript-commits] [d3-tip.js] 44/277: Fix location of rectangle for left position

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.

commit d1bea672547867d5df7f4efc14c64384a3d117d1
Author: Karl Broman <kbroman at gmail.com>
Date:   Fri Jun 22 03:14:48 2012 -0500

    Fix location of rectangle for left position
---
 src/d3.tip.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index 04e1c95..f861a12 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -97,7 +97,7 @@ d3.svg.tip = function() {
       },
 
       left: function() {
-        stem.attr('transform', 'translate(' + backingRect.width + ',' + (backingRect.height / 2) + ') rotate(-90)');
+        stem.attr('transform', 'translate(' + (backingRect.width + (stemRect.height/2)) + ',' + (backingRect.height / 2) + ') rotate(-90)');
 
         containerRect = container.node().getBBox()
         x = targetRect.x - (stemRect.height / 2) + tipOffset[0];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git



More information about the Pkg-javascript-commits mailing list