mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 09:34:29 +08:00
Fix size of the macro window
This commit is contained in:
@ -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: [{
|
||||
|
||||
Reference in New Issue
Block a user