Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #155 from geksiong/develop
Browse files Browse the repository at this point in the history
Fix incorrect font height in labels and tags when graph canvas is contained in a floating div.
  • Loading branch information
nicoespeon authored Apr 18, 2017
2 parents e9409dd + a15a675 commit a7175b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@
var dummyText = document.createTextNode("Mg");

dummy.appendChild(dummyText);
dummy.setAttribute("style", "font: " + font + ";");
dummy.setAttribute("style", "font: " + font + "; display: inline-block;");
body.appendChild(dummy);
var fontHeight = dummy.offsetHeight;
body.removeChild(dummy);
Expand Down

0 comments on commit a7175b5

Please sign in to comment.