diff --git a/web/toolbar.js b/web/toolbar.js index 089c6c3f6..70330af09 100644 --- a/web/toolbar.js +++ b/web/toolbar.js @@ -152,16 +152,12 @@ class Toolbar { scaleSelect.oncontextmenu = noContextMenuHandler; this.eventBus.on('localized', () => { - this._localized(); + this._wasLocalized = true; + this._adjustScaleWidth(); + this._updateUIState(true); }); } - _localized() { - this._wasLocalized = true; - this._adjustScaleWidth(); - this._updateUIState(true); - } - _updateUIState(resetNumPages = false) { if (!this._wasLocalized) { // Don't update the UI state until we localize the toolbar.