mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Always remove the sidebarMoving
CSS class when the sidebar is closed
When the viewer becomes narrow enough that the sidebar is overlaying the document, which means that the `viewerContainer` is not moving when opening/closing the sidebar, we're currently not removing the `sidebarMoving` CSS class as intended. While this doesn't cause any *visible* issues, it's nonetheless wrong and should be fixed.
This commit is contained in:
parent
143ba30bef
commit
0fbe5832ab
2 changed files with 6 additions and 6 deletions
|
@ -125,7 +125,7 @@ function getViewerConfiguration() {
|
|||
sidebar: {
|
||||
// Divs (and sidebar button)
|
||||
outerContainer: document.getElementById("outerContainer"),
|
||||
viewerContainer: document.getElementById("viewerContainer"),
|
||||
sidebarContainer: document.getElementById("sidebarContainer"),
|
||||
toggleButton: document.getElementById("sidebarToggle"),
|
||||
// Buttons
|
||||
thumbnailButton: document.getElementById("viewThumbnail"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue