mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #18416 from razh/ensureMinimumFontSize-body-flex
Fix `ensureMinFontSizeComputed` calculation if `<body>` is a flex container
This commit is contained in:
commit
cf58113e8c
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue