Commit 5e3f6a9c authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix no-scrollbar bug in class tree.

The happened when the welcome page was first loaded and then one
switched to API tab. It happened because the class tree was activated
while it was hidden, so height calculations couldn't be performed
correctly. Fixed by adding an empty item to trees container that's
activated first instead of the class tree.
parent 513ba520
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19,6 +19,12 @@ Ext.define('Docs.view.TreeContainer', {

    initComponent: function() {
        this.items = [
            {
                // An empty item that's initially activated.
                // We don't want to activate any of the trees when
                // they are hidden, as that will cause the scrollbar
                // to render improperly (or rather, not render at all)
            },
            {
                xtype: 'classtree',
                id: 'classtree',