mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Avoid having overflowing sections (#15036 follow-up)
This commit is contained in:
parent
45de73bd00
commit
af47a0b7e0
2 changed files with 2 additions and 3 deletions
|
@ -908,7 +908,7 @@ class WidgetAnnotationElement extends AnnotationElement {
|
|||
const height = Math.abs(this.data.rect[3] - this.data.rect[1]);
|
||||
computedFontSize = Math.min(fontSize, Math.round(height / LINE_FACTOR));
|
||||
}
|
||||
style.fontSize = `${computedFontSize}%`;
|
||||
style.fontSize = `calc(${computedFontSize}px * var(--scale-factor))`;
|
||||
|
||||
style.color = Util.makeHexColor(fontColor[0], fontColor[1], fontColor[2]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue