mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Merge pull request #8993 from Snuffleupagus/sidebar-constant-position
Layout the sidebar in the same vertical position regardless of the viewer width (issue 4052, bug 850591)
This commit is contained in:
commit
f87c16bcc4
4 changed files with 50 additions and 83 deletions
11
web/app.js
11
web/app.js
|
@ -1576,12 +1576,11 @@ function webViewerInitialized() {
|
|||
appConfig.toolbar.viewFind.classList.add('hidden');
|
||||
}
|
||||
|
||||
appConfig.sidebar.mainContainer.addEventListener('transitionend',
|
||||
function(evt) {
|
||||
if (evt.target === /* mainContainer */ this) {
|
||||
PDFViewerApplication.eventBus.dispatch('resize');
|
||||
}
|
||||
}, true);
|
||||
appConfig.mainContainer.addEventListener('transitionend', function(evt) {
|
||||
if (evt.target === /* mainContainer */ this) {
|
||||
PDFViewerApplication.eventBus.dispatch('resize');
|
||||
}
|
||||
}, true);
|
||||
|
||||
appConfig.sidebar.toggleButton.addEventListener('click', function() {
|
||||
PDFViewerApplication.pdfSidebar.toggle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue