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

Commit

Permalink
Fix incorrect font height in labels and tags when percent width is used
Browse files Browse the repository at this point in the history
  • Loading branch information
geksiong committed Apr 11, 2017
1 parent e9409dd commit a15a675
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 a15a675

Please sign in to comment.