mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Set the dimensions of the various layers at their creation
- Use a unique helper function in display/display_utils.js; - Move those dimensions in css' side.
This commit is contained in:
parent
9d4aadbf7a
commit
a989b5a879
9 changed files with 89 additions and 78 deletions
|
@ -131,10 +131,9 @@ class AnnotationLayerBuilder {
|
|||
} else {
|
||||
// Create an annotation layer div and render the annotations
|
||||
// if there is at least one annotation.
|
||||
this.div = document.createElement("div");
|
||||
this.div = parameters.div = document.createElement("div");
|
||||
this.div.className = "annotationLayer";
|
||||
this.pageDiv.append(this.div);
|
||||
parameters.div = this.div;
|
||||
|
||||
AnnotationLayer.render(parameters);
|
||||
this.l10n.translate(this.div);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue