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:
Tim van der Meij 2017-11-04 16:53:11 +01:00 committed by GitHub
commit f87c16bcc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 83 deletions

View file

@ -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();