From a000f857137c1239e7d96bda13b1ad461677e9ce Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 16 Aug 2017 10:50:25 +0300 Subject: [PATCH] Change maximum size for plugin window. --- apps/common/main/lib/view/Plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js index e39bc2e22..80c4243fe 100644 --- a/apps/common/main/lib/view/Plugins.js +++ b/apps/common/main/lib/view/Plugins.js @@ -315,7 +315,7 @@ define([ var header_footer = (_options.buttons && _.size(_options.buttons)>0) ? 85 : 34; if (!_options.header) header_footer -= 34; - this.bordersOffset = 25; + this.bordersOffset = 35; _options.width = (Common.Utils.innerWidth()-this.bordersOffset*2-_options.width)<0 ? Common.Utils.innerWidth()-this.bordersOffset*2: _options.width; _options.height += header_footer; _options.height = (Common.Utils.innerHeight()-this.bordersOffset*2-_options.height)<0 ? Common.Utils.innerHeight()-this.bordersOffset*2: _options.height; @@ -407,7 +407,7 @@ define([ Common.UI.Window.prototype.setWidth.call(this, width + borders_width); this.$window.css('left',(maxWidth - width - borders_width) / 2); - this.$window.css('top',((maxHeight - height - this._headerFooterHeight) / 2) * 0.9); + this.$window.css('top',((maxHeight - height - this._headerFooterHeight) / 2)); }, onWindowResize: function() {