Skip to content

Commit

Permalink
Merge pull request #18416 from razh/ensureMinimumFontSize-body-flex
Browse files Browse the repository at this point in the history
Fix `ensureMinFontSizeComputed` calculation if `<body>` is a flex container
  • Loading branch information
timvandermeij authored Jul 10, 2024
2 parents b1bf8b4 + 665fff0 commit cf58113
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display/text_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ class TextLayer {
div.style.opacity = 0;
div.style.lineHeight = 1;
div.style.fontSize = "1px";
div.style.position = "absolute";
div.textContent = "X";
document.body.append(div);
// In `display:block` elements contain a single line of text,
Expand Down

0 comments on commit cf58113

Please sign in to comment.