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

Remove TabPanel completely.

Again temporarily getting rid of tabs.
parent 3f6dd8ce
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -7,8 +7,7 @@ Ext.define('Docs.controller.Classes', {

    requires: [
        'Docs.History',
        'Docs.Syntax',
        'Docs.view.cls.Overview'
        'Docs.Syntax'
    ],

    stores: [
@@ -224,12 +223,6 @@ Ext.define('Docs.controller.Classes', {
        if (this.currentCls !== cls) {
            this.getViewport().setPageTitle(cls.name);
            this.getHeader().load(cls);

            if (!this.getOverview()) {
                this.getTabPanel().add(Ext.create('Docs.view.cls.Overview'));
                this.getTabPanel().setActiveTab(0);
            }

            this.getOverview().load(cls);
            this.getOverview().setLoading(false);

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ Ext.define('Docs.view.cls.Container', {
    initComponent: function() {
        this.items = [
            Ext.create('Docs.view.cls.Header'),
            Ext.create('Docs.view.cls.TabPanel', {
            Ext.create('Docs.view.cls.Overview', {
                flex: 1
            })
        ];
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ Ext.define('Docs.view.cls.Overview', {
    ],

    cls: 'class-overview iScroll',
    title: 'Overview',
    autoScroll: true,
    bodyPadding: '20',

template/app/view/cls/TabPanel.js

deleted100644 → 0
+0 −23
Original line number Diff line number Diff line
/**
 * The documentation panel.
 * TODO: Source code tab, Examples, Q&A
 */
Ext.define('Docs.view.cls.TabPanel', {
    extend: 'Ext.tab.Panel',
    alias: 'widget.classtabpanel',

    plain: true,

    // Remember tab scroll position on Webkit
    listeners: {
        beforetabchange: function(tabPanel, newCard, oldCard) {
            oldCard.prevScroll = oldCard.body.getScroll()['top'];
        },
        tabchange: function(tabPanel, newCard, oldCard) {
            if (newCard.prevScroll) {
                newCard.body.scrollTo('top', newCard.prevScroll);
            }
        }
    }

});
 No newline at end of file