From c47703abfc6619ce1c34ad5cb0f278da6e5b0c23 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 8 Aug 2022 13:51:48 +0300 Subject: [PATCH 1/2] [DE] For Bug 47433: min zoom value = 10% --- apps/documenteditor/main/app/controller/ViewTab.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/ViewTab.js b/apps/documenteditor/main/app/controller/ViewTab.js index 0a3ca2968..2c83c6d2e 100644 --- a/apps/documenteditor/main/app/controller/ViewTab.js +++ b/apps/documenteditor/main/app/controller/ViewTab.js @@ -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); }, From 4001ad958ccda6c5604bb19bb3c445c2324d7346 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 8 Aug 2022 14:00:14 +0300 Subject: [PATCH 2/2] [PE] For Bug 47433 --- apps/presentationeditor/main/app/controller/ViewTab.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/presentationeditor/main/app/controller/ViewTab.js b/apps/presentationeditor/main/app/controller/ViewTab.js index f8cecce5d..72f824a02 100644 --- a/apps/presentationeditor/main/app/controller/ViewTab.js +++ b/apps/presentationeditor/main/app/controller/ViewTab.js @@ -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); },