Always set a border-radius for RadioButton annotations (issue 15262)
This commit is contained in:
parent
803e7af595
commit
899fc29eef
@ -222,6 +222,9 @@ class AnnotationElement {
|
|||||||
if (horizontalRadius > 0 || verticalRadius > 0) {
|
if (horizontalRadius > 0 || verticalRadius > 0) {
|
||||||
const radius = `calc(${horizontalRadius}px * var(--scale-factor)) / calc(${verticalRadius}px * var(--scale-factor))`;
|
const radius = `calc(${horizontalRadius}px * var(--scale-factor)) / calc(${verticalRadius}px * var(--scale-factor))`;
|
||||||
container.style.borderRadius = radius;
|
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) {
|
switch (data.borderStyle.style) {
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -481,6 +481,7 @@
|
|||||||
!issue11442_reduced.pdf
|
!issue11442_reduced.pdf
|
||||||
!issue11549_reduced.pdf
|
!issue11549_reduced.pdf
|
||||||
!issue8097_reduced.pdf
|
!issue8097_reduced.pdf
|
||||||
|
!issue15262.pdf
|
||||||
!bug1743245.pdf
|
!bug1743245.pdf
|
||||||
!quadpoints.pdf
|
!quadpoints.pdf
|
||||||
!transparent.pdf
|
!transparent.pdf
|
||||||
|
BIN
test/pdfs/issue15262.pdf
Normal file
BIN
test/pdfs/issue15262.pdf
Normal file
Binary file not shown.
@ -2708,6 +2708,13 @@
|
|||||||
"lastPage": 33,
|
"lastPage": 33,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue15262",
|
||||||
|
"file": "pdfs/issue15262.pdf",
|
||||||
|
"md5": "f33f73848cea3c7034457653d5cfb9be",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq",
|
||||||
|
"forms": true
|
||||||
|
},
|
||||||
{ "id": "smaskdim",
|
{ "id": "smaskdim",
|
||||||
"file": "pdfs/smaskdim.pdf",
|
"file": "pdfs/smaskdim.pdf",
|
||||||
"md5": "de80aeca7cbf79940189fd34d59671ee",
|
"md5": "de80aeca7cbf79940189fd34d59671ee",
|
||||||
|
Loading…
Reference in New Issue
Block a user