mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Ensure that various URL-related options are applied in the xfaLayer
too
Note how both the annotationLayer and the document outline will apply various URL-related options when creating the link-elements. For consistency the `xfaLayer`-rendering should obviously use the same options, to ensure that the existing options are indeed applied to all URLs regardless of where they originate.
This commit is contained in:
parent
284d259054
commit
bb9c905c5d
7 changed files with 53 additions and 9 deletions
|
@ -1094,7 +1094,6 @@ class Button extends XFAObject {
|
|||
if (!href) {
|
||||
continue;
|
||||
}
|
||||
const target = jsURL.newWindow ? "_blank" : undefined;
|
||||
|
||||
// we've an url so generate a <a>
|
||||
htmlButton.children.push({
|
||||
|
@ -1102,7 +1101,7 @@ class Button extends XFAObject {
|
|||
attributes: {
|
||||
id: "link" + this[$uid],
|
||||
href,
|
||||
target,
|
||||
newWindow: jsURL.newWindow,
|
||||
class: ["xfaLink"],
|
||||
style: {},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue