--- /dev/null
+/**
+ * The documentation panel.
+ * TODO: Source code tab, Examples, Q&A
+ */
+Ext.define('Docs.view.cls.TabPanel', {
+ extend: 'Ext.tab.Panel',
+ alias: 'widget.classtabpanel',
+ requires: [
+ 'Docs.view.cls.Overview'
+ ],
+
+ 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);
+ }
+ }
+ }
+
+});