Commit 62db1711 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Reintroduce 400px max height for inline example code.

Previously we relied on builtin maxHeight of container, but that
also limited the height of the live preview which we wanted to be
larger.  Not doing our own bounds-checking.
parent db2fda0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ Ext.define('Docs.view.examples.Inline', {
        constrainTo: false
    },
    // Make too long examples scrollable
    maxHeight: 890,
    maxCodeHeight: 400,

    dockedItems: [{
        xtype: 'toolbar',
@@ -120,7 +120,7 @@ Ext.define('Docs.view.examples.Inline', {
        }
        else {
            var editorHeight = this.editor.getHeight();
            editorHeight && this.setHeight(editorHeight + 5);
            this.setHeight(Ext.Number.constrain(editorHeight, 0, this.maxCodeHeight));
        }
    }