-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the text fields font size based on their height #14936
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
https://github.com/mozilla/pdf.js/files/7594316/formulairecerfa90nov00-1.pdf | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,9 @@ | |
background-image: var(--annotation-unfocused-field-background); | ||
border: 1px solid transparent; | ||
box-sizing: border-box; | ||
font-size: 9px; | ||
font: 9px sans-serif; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0 3px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this essentially "sneaking" in a fix for issue #14301 here? If so, that's probably good to mention explicitly in the commit message (and linking the issue such that it's closed). Given the discussion in the issue, does this generally work without problems? |
||
vertical-align: top; | ||
width: 100%; | ||
} | ||
|
@@ -76,8 +75,6 @@ | |
} | ||
|
||
.annotationLayer .textWidgetAnnotation textarea { | ||
font: message-box; | ||
font-size: 9px; | ||
resize: none; | ||
} | ||
|
||
|
@@ -167,7 +164,6 @@ | |
.annotationLayer .buttonWidgetAnnotation.checkBox input, | ||
.annotationLayer .buttonWidgetAnnotation.radioButton input { | ||
appearance: none; | ||
padding: 0; | ||
} | ||
|
||
.annotationLayer .popupWrapper { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this essentially "sneaking" in a fix for issue #14736 here?
If so, that's probably good to mention explicitly in the commit message (and linking the issue such that it's closed).