[Pkg-javascript-commits] [d3-tip.js] 46/277: For text box, change alignment-baseline to dominant-baseline

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 74258fad2e8784ca06a21f2368f9c5ddb0ae6734
Author: Karl Broman <kbroman at gmail.com>
Date:   Wed Jun 27 14:03:19 2012 -0500

    For text box, change alignment-baseline to dominant-baseline
    
      - Fixes the vertical alignment in Firefox (which seems to ignore
        alignment-baseline)
    
      - Still works in Safari and Chrome on Mac
---
 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 6064cc1..e810ee5 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -36,7 +36,7 @@ d3.svg.tip = function() {
     container.text(' ').node().appendChild(backing.node())
 
     // The value to show in the tooltip
-    var val = container.append('text').text(tipText).attr('text-anchor', 'middle').attr('alignment-baseline', 'middle'),
+    var val = container.append('text').text(tipText).attr('text-anchor', 'middle').attr('dominant-baseline', 'middle'),
         valRect = val.node().getBBox();
 
     valRect.width = valRect.width + (padding * 2)

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