Fix resize internal editors
This commit is contained in:
parent
ce7bacd50f
commit
30d7928104
|
@ -105,8 +105,7 @@ define([
|
||||||
var h = this.diagramEditorView.getHeight(),
|
var h = this.diagramEditorView.getHeight(),
|
||||||
innerHeight = Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top');
|
innerHeight = Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top');
|
||||||
if (innerHeight<h) {
|
if (innerHeight<h) {
|
||||||
h = Math.min(innerHeight, 700);
|
this.diagramEditorView.setHeight(innerHeight);
|
||||||
this.diagramEditorView.setHeight(h);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (externalEditor) {
|
if (externalEditor) {
|
||||||
|
|
|
@ -105,7 +105,7 @@ define([
|
||||||
var h = this.oleEditorView.getHeight(),
|
var h = this.oleEditorView.getHeight(),
|
||||||
innerHeight = Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top');
|
innerHeight = Common.Utils.innerHeight() - Common.Utils.InternalSettings.get('window-inactive-area-top');
|
||||||
if (innerHeight<h) {
|
if (innerHeight<h) {
|
||||||
this.oleEditorView.setHeight(h);
|
this.oleEditorView.setHeight(innerHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (externalEditor) {
|
if (externalEditor) {
|
||||||
|
@ -133,8 +133,6 @@ define([
|
||||||
}, this)
|
}, this)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
|
|
Loading…
Reference in a new issue