Commit d9f13fe0 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Another fix for CodeMirror initial height.

The hight now gets set to the right size the first time the editor is
activated.
parent 889d2177
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ Ext.define('Docs.view.examples.Inline', {
                cmpName: 'code',
                value: this.value,
                listeners: {
                    init: this.updateHeight,
                    change: this.updateHeight,
                    scope: this
                }
+6 −0
Original line number Diff line number Diff line
@@ -9,6 +9,11 @@ Ext.define('Docs.view.examples.InlineEditor', {

    initComponent: function() {
        this.addEvents(
            /**
             * @event
             * Fired after CodeMirror initialized.
             */
            "init",
            /**
             * @event
             * Fired when CodeMirror onChange is called.
@@ -29,6 +34,7 @@ Ext.define('Docs.view.examples.InlineEditor', {
                    this.fireEvent("change");
                }, this)
            });
            this.fireEvent("init");
        }
    },