[PE] For Bug 47433
This commit is contained in:
parent
c47703abfc
commit
4001ad958c
|
@ -245,7 +245,9 @@ define([
|
||||||
applyZoom: function (value) {
|
applyZoom: function (value) {
|
||||||
this._state.zoom_percent = undefined;
|
this._state.zoom_percent = undefined;
|
||||||
this._state.zoom_type = 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);
|
this.api.zoom(val);
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.view);
|
Common.NotificationCenter.trigger('edit:complete', this.view);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue