superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [big_number] tooltip shows in the wrong place (#5404)
Date Mon, 16 Jul 2018 21:59:18 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 48317fd  [big_number] tooltip shows in the wrong place (#5404)
48317fd is described below

commit 48317fd8f986e427211d590881fdd96bbf074b01
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Mon Jul 16 14:59:14 2018 -0700

    [big_number] tooltip shows in the wrong place (#5404)
---
 superset/assets/src/visualizations/big_number.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/assets/src/visualizations/big_number.js b/superset/assets/src/visualizations/big_number.js
index 3d81c55..cd02ec9 100644
--- a/superset/assets/src/visualizations/big_number.js
+++ b/superset/assets/src/visualizations/big_number.js
@@ -186,11 +186,11 @@ function bigNumberVis(slice, payload) {
       .attr('fill-opacity', 0)
       .on('mouseover', function (d) {
         d3.select(this).attr('fill-opacity', 1);
-        tip.show(d);
+        tip.show(d, this);
       })
       .on('mouseout', function (d) {
         d3.select(this).attr('fill-opacity', 0);
-        tip.hide(d);
+        tip.hide(d, this);
       });
 
     div.on('mouseover', function () {


Mime
View raw message