1 Ext.define('Docs.ClassPanel', {
2 extend: 'Ext.tab.Panel',
7 style: 'border-color: #bfbfbf;',
10 // Remember tab scroll position on Webkit
12 beforetabchange: function(tabPanel, newCard, oldCard) {
13 oldCard.prevScroll = oldCard.body.getScroll()['top'];
15 tabchange: function(tabPanel, newCard, oldCard) {
16 if (newCard.prevScroll) {
17 newCard.body.scrollTo('top', newCard.prevScroll);
20 afterrender: function() {
21 Docs.App.resizeWindow();
25 initComponent: function() {
26 this.height = Ext.get('docContent').getHeight() - 55;
27 this.items = Ext.create('Docs.OverviewPanel');
28 this.callParent(arguments);