Skip to content

Commit

Permalink
Bug fix in tooltip - tip was not transforming back to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
kajdreef committed Nov 2, 2020
1 parent 24835b1 commit 43afdb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/visualizations/MatrixVisualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ class MatrixVisualization extends Component {
.each((d, i) => {
text_width = select("#tooltip-text").node().getComputedTextLength();
})
.attr("transform", "")
.attr("x", () => {
let x_location = event.layerX - (text_width / 2) + 10;
if (x_location < 10){
Expand Down

0 comments on commit 43afdb5

Please sign in to comment.