[Pkg-javascript-commits] [d3-tip.js] 45/277: Use 'x' and 'y' rather than 'dx' and 'dy' for text box

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 8e0ec2a4acce2c3dd01f1f22edab55254e3ea56a
Author: Karl Broman <kbroman at gmail.com>
Date:   Wed Jun 27 13:39:15 2012 -0500

    Use 'x' and 'y' rather than 'dx' and 'dy' for text box
    
     - Fixes text alignment problem in Firefox; still works in Safari and Chrome
---
 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 f861a12..6064cc1 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -47,7 +47,7 @@ d3.svg.tip = function() {
       .attr('rx', cornerRadius)
       .attr('ry', cornerRadius)
 
-    val.attr('dx', valRect.width / 2).attr('dy', valRect.height / 2)
+    val.attr('x', valRect.width / 2).attr('y', valRect.height / 2)
 
     backingRect = backing.node().getBBox()
 

-- 
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