mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #5881 from mbbaig/master
Added the data-page-number dom attribute to the page rendered in the browser
This commit is contained in:
commit
01f1761a8b
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||
div.className = 'page';
|
||||
div.style.width = Math.floor(this.viewport.width) + 'px';
|
||||
div.style.height = Math.floor(this.viewport.height) + 'px';
|
||||
div.setAttribute('data-page-number', this.id);
|
||||
this.div = div;
|
||||
|
||||
container.appendChild(div);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue