From 3cebf6bb2baba7d07326531e19e7a34fe665e2c0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 4 Nov 2024 21:02:06 +0300 Subject: [PATCH] Fix size of the macro window --- apps/common/main/lib/view/MacrosDialog.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/common/main/lib/view/MacrosDialog.js b/apps/common/main/lib/view/MacrosDialog.js index 49b67522b5..e9902f7229 100644 --- a/apps/common/main/lib/view/MacrosDialog.js +++ b/apps/common/main/lib/view/MacrosDialog.js @@ -72,16 +72,19 @@ define([], function () { initialize : function(options) { - var _options = {}; + var _options = {}, + innerHeight = Math.max(Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top'), 512), + innerWidth = Math.max(Common.Utils.innerWidth(), 600); + _.extend(_options, { id: 'macros-dialog', title: this.textTitle, header: true, help: true, - width: 800, - height: 600, - minwidth: 800, - minheight: 512, + width: Math.min(800, innerWidth), + height: Math.min(512, innerHeight), + minwidth: 600, + minheight: 350, resizable: true, cls: 'modal-dlg invisible-borders', buttons: [{