mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Moves all document.getElementById lookups into viewer.js
This commit is contained in:
parent
d5c000850a
commit
b6c74f2056
9 changed files with 233 additions and 165 deletions
|
@ -531,7 +531,7 @@ var PDFBug = (function PDFBugClosure() {
|
|||
});
|
||||
}
|
||||
},
|
||||
init: function init(pdfjsLib) {
|
||||
init: function init(pdfjsLib, container) {
|
||||
/*
|
||||
* Basic Layout:
|
||||
* PDFBug
|
||||
|
@ -552,7 +552,6 @@ var PDFBug = (function PDFBugClosure() {
|
|||
panels.setAttribute('class', 'panels');
|
||||
ui.appendChild(panels);
|
||||
|
||||
var container = document.getElementById('viewerContainer');
|
||||
container.appendChild(ui);
|
||||
container.style.right = panelWidth + 'px';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue