Fix resize internal editors

This commit is contained in:
Julia Radzhabova 2022-06-22 19:32:44 +03:00
parent ce7bacd50f
commit 30d7928104
2 changed files with 2 additions and 5 deletions

View file

@ -105,8 +105,7 @@ define([
var h = this.diagramEditorView.getHeight(),
innerHeight = Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top');
if (innerHeight<h) {
h = Math.min(innerHeight, 700);
this.diagramEditorView.setHeight(h);
this.diagramEditorView.setHeight(innerHeight);
}
if (externalEditor) {

View file

@ -105,7 +105,7 @@ define([
var h = this.oleEditorView.getHeight(),
innerHeight = Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top');
if (innerHeight<h) {
this.oleEditorView.setHeight(h);
this.oleEditorView.setHeight(innerHeight);
}
if (externalEditor) {
@ -133,8 +133,6 @@ define([
}, this)
}
});
},
onLaunch: function() {