Merge pull request #1889 from ONLYOFFICE/fix/bugfix

[DE] For Bug 47433: min zoom value = 10%
This commit is contained in:
Julia Radzhabova 2022-08-08 14:06:31 +03:00 committed by GitHub
commit e51c80a284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -209,7 +209,9 @@ define([
},
applyZoom: function (value) {
var val = Math.max(25, Math.min(500, value));
var val = Math.max(10, Math.min(500, value));
if (this._state.zoomValue === val)
this.view.cmbZoom.setValue(this._state.zoomValue, this._state.zoomValue + '%');
this.api.zoom(val);
Common.NotificationCenter.trigger('edit:complete', this.view);
},

View file

@ -245,7 +245,9 @@ define([
applyZoom: function (value) {
this._state.zoom_percent = undefined;
this._state.zoom_type = undefined;
var val = Math.max(25, Math.min(500, value));
var val = Math.max(10, Math.min(500, value));
if (this._state.zoomValue === val)
this.view.cmbZoom.setValue(this._state.zoomValue, this._state.zoomValue + '%');
this.api.zoom(val);
Common.NotificationCenter.trigger('edit:complete', this.view);
},