Commit dc3bea87 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Codeeditor: fixed resize handling

parent 470dcb0f
...@@ -122,7 +122,9 @@ define([ ...@@ -122,7 +122,9 @@ define([
}, },
onResize: function() { onResize: function() {
this.editor.resize(); if (this.editor) {
this.editor.resize();
}
}, },
onFocus: function() { onFocus: function() {
...@@ -135,8 +137,6 @@ define([ ...@@ -135,8 +137,6 @@ define([
if (this.editor && this.editor.ace) { if (this.editor && this.editor.ace) {
this.editor.ace.blur(); this.editor.ace.blur();
} }
return this;
}, },
onBeforeClose: function() { onBeforeClose: function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment