Ensure that the outlineWithDeepNesting
CSS class is removed when resetting PDFOutlineViewer
, to prevent incorrect alignment if a new document is opened
This commit is contained in:
parent
e07cb8638e
commit
468ed1b9a1
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ var PDFOutlineViewer = (function PDFOutlineViewerClosure() {
|
||||||
|
|
||||||
// Remove the outline from the DOM.
|
// Remove the outline from the DOM.
|
||||||
this.container.textContent = '';
|
this.container.textContent = '';
|
||||||
|
// Ensure that the left (right in RTL locales) margin is always reset,
|
||||||
|
// to prevent incorrect outline alignment if a new document is opened.
|
||||||
|
this.container.classList.remove('outlineWithDeepNesting');
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue