Commit 7e1a98f3 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix bug when editing Touch inline examples.

The height of the whole editor collapsed to 0px.
parent a8ca35ab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -97,7 +97,8 @@ Ext.define('Docs.view.examples.Inline', {
    // Syncs the height with number of lines in code example.
    updateHeight: function() {
        if (Docs.touchExamplesUi) {
            this.setHeight(this.preview.getHeight());
            var height = this.preview.getHeight();
            height > 0 && this.setHeight(height);
        }
        else {
            var editorHeight = this.editor.getHeight();