1
0
Fork 0
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:
Tim van der Meij 2024-07-10 16:17:26 +02:00 committed by GitHub
commit cf58113e8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,