[TASK] Remove dublicate code - Ext.ux.plugins.TabStripContainer
authorMichael Klapper <klapper@aoemedia.de>
Tue, 14 Jun 2011 09:00:45 +0000 (11:00 +0200)
committerMichael Klapper <klapper@aoemedia.de>
Tue, 14 Jun 2011 09:00:45 +0000 (11:00 +0200)
Change-Id: Ic5331d299aecf98b2936c8c5751a706db2ef5da3
Resolves: #27421
Releases: 4.6, 4.5

typo3/sysext/workspaces/Resources/Public/JavaScript/Ext.ux.plugins.TabStripContainer.js

index 7bece71..05eee41 100644 (file)
@@ -98,105 +98,4 @@ Ext.ux.plugins.TabStripContainer = Ext.extend(Object, {
        }
 
 });
-Ext.preg('Ext.ux.plugins.TabStripContainer', Ext.ux.plugins.TabStripContainer);
-/**
- * Ext.ux.plugins.TabStripContainer
- *
- * @author  Steffen Kamper
- * @date       December 19, 2010
- *
- * @class Ext.ux.plugins.TabStripContainer
- * @extends Object
- */
-
-Ext.ns('Ext.ux.plugins');
-
-Ext.ux.plugins.TabStripContainer = Ext.extend(Object, {
-
-       /**
-        * @hide        private
-        *
-        * Tab panel we are plugged in.
-        */
-       tabPanel : null,
-
-       /**
-        * @hide        private
-        *
-        * items for the panel
-        */
-       items: [],
-
-       /**
-        * @hide        private
-        *
-        * Cached tab panel's strip wrap element container, i.e. panel's header or footer element.
-        */
-       headerFooterEl : null,
-
-
-       /**
-        * @constructor
-        */
-       constructor : function(config) {
-               Ext.apply(this, config);
-       },
-
-       /**
-        * Initializes plugin
-        */
-       init : function(tabPanel) {
-               this.tabPanel = tabPanel;
-               tabPanel.on(
-                       'afterrender',
-                       this.onTabPanelAfterRender,
-                       this,
-                       {
-                               delay: 10
-                       }
-               );
-       },
-
-       /**
-        * Adds the panel to the tab header/footer
-        *
-        * @param tabPanel
-        */
-       onTabPanelAfterRender: function(tabPanel) {
-               var height, panelDiv, stripTarget, config;
-               // Getting and caching strip wrap element parent, i.e. tab panel footer or header.
-               this.headerFooterEl =
-                               this.tabPanel.tabPosition == 'bottom'
-                                       ? this.tabPanel.footer
-                                       : this.tabPanel.header;
-               height = this.headerFooterEl.getComputedHeight();
-               stripTarget = tabPanel[tabPanel.stripTarget];
-
-               stripTarget.applyStyles('position: relative;');
-
-               panelDiv = this.headerFooterEl.createChild({
-                       tag : 'div',
-                       id: this.id || Ext.id(),
-                       style : {
-                               position : 'absolute',
-                               right: 0,
-                               top: 0
-                       }
-               });
-               panelDiv.setSize(this.width, height, false);
-               config = Ext.applyIf({
-                       layout: 'hbox',
-                       layoutConfig: {
-                               align: 'stretchmax'
-                       },
-                       height: height,
-                       width: this.width,
-                       renderTo: panelDiv
-               }, this.panelConfig);
-               this.panelContainer = new Ext.Panel(config);
-               this.panelContainer.add(this.items);
-               this.panelContainer.doLayout();
-       }
-
-});
-Ext.preg('Ext.ux.plugins.TabStripContainer', Ext.ux.plugins.TabStripContainer);
+Ext.preg('Ext.ux.plugins.TabStripContainer', Ext.ux.plugins.TabStripContainer);
\ No newline at end of file