|
|
|
@ -3153,14 +3153,16 @@ window.addEventListener('localized', function localized(evt) {
@@ -3153,14 +3153,16 @@ window.addEventListener('localized', function localized(evt) {
|
|
|
|
|
document.getElementsByTagName('html')[0].dir = mozL10n.getDirection(); |
|
|
|
|
|
|
|
|
|
// Adjust the width of the zoom box to fit the content.
|
|
|
|
|
PDFView.animationStartedPromise.then( |
|
|
|
|
function() { |
|
|
|
|
var container = document.getElementById('scaleSelectContainer'); |
|
|
|
|
var select = document.getElementById('scaleSelect'); |
|
|
|
|
|
|
|
|
|
select.setAttribute('style', 'min-width: inherit;'); |
|
|
|
|
var width = select.clientWidth + 8; |
|
|
|
|
select.setAttribute('style', 'min-width: ' + (width + 20) + 'px;'); |
|
|
|
|
container.setAttribute('style', 'min-width: ' + width + 'px; ' + |
|
|
|
|
'max-width: ' + width + 'px;'); |
|
|
|
|
select.setAttribute('style', 'min-width: ' + (width + 20) + 'px;'); |
|
|
|
|
}); |
|
|
|
|
}, true); |
|
|
|
|
|
|
|
|
|
window.addEventListener('scalechange', function scalechange(evt) { |
|
|
|
|