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

Fix height calculation for ExtJS inline examples.

parent a8831eac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,11 +115,11 @@ Ext.define('Docs.view.examples.Inline', {
    // Syncs the height with number of lines in code example.
    updateHeight: function() {
        var previewHeight = this.preview.getHeight();
        var editorHeight = this.editor.getHeight();
        if (Docs.touchExamplesUi && previewHeight > 0) {
            this.setHeight(previewHeight);
        }
        else {
            var editorHeight = this.editor.getHeight();
        else if (editorHeight > 0) {
            this.setHeight(Ext.Number.constrain(editorHeight, 0, this.maxCodeHeight));
        }
    }