Always set a border-radius for RadioButton annotations (issue 15262)

This commit is contained in:
Jonas Jenwald 2022-08-02 13:50:40 +02:00
parent 803e7af595
commit 899fc29eef
4 changed files with 11 additions and 0 deletions

View File

@ -222,6 +222,9 @@ class AnnotationElement {
if (horizontalRadius > 0 || verticalRadius > 0) {
const radius = `calc(${horizontalRadius}px * var(--scale-factor)) / calc(${verticalRadius}px * var(--scale-factor))`;
container.style.borderRadius = radius;
} else if (this instanceof RadioButtonWidgetAnnotationElement) {
const radius = `calc(${width}px * var(--scale-factor)) / calc(${height}px * var(--scale-factor))`;
container.style.borderRadius = radius;
}
switch (data.borderStyle.style) {

View File

@ -481,6 +481,7 @@
!issue11442_reduced.pdf
!issue11549_reduced.pdf
!issue8097_reduced.pdf
!issue15262.pdf
!bug1743245.pdf
!quadpoints.pdf
!transparent.pdf

BIN
test/pdfs/issue15262.pdf Normal file

Binary file not shown.

View File

@ -2708,6 +2708,13 @@
"lastPage": 33,
"type": "eq"
},
{ "id": "issue15262",
"file": "pdfs/issue15262.pdf",
"md5": "f33f73848cea3c7034457653d5cfb9be",
"rounds": 1,
"type": "eq",
"forms": true
},
{ "id": "smaskdim",
"file": "pdfs/smaskdim.pdf",
"md5": "de80aeca7cbf79940189fd34d59671ee",