Index: t3lib/js/extjs/components/pagetree/javascript/deletiondropzone.js =================================================================== --- t3lib/js/extjs/components/pagetree/javascript/deletiondropzone.js (Revision 10378) +++ t3lib/js/extjs/components/pagetree/javascript/deletiondropzone.js (Arbeitskopie) @@ -215,6 +215,7 @@ '', false ); + this.app.doLayout(); ++this.amountOfDrops; (function() { @@ -289,6 +290,7 @@ this.setHeight(35); this.updateText(TYPO3.Components.PageTree.LLL.dropToRemove, false); this.updateIcon(TYPO3.Components.PageTree.Sprites.TrashCan); + this.app.doLayout(); }, /** @@ -306,6 +308,7 @@ } this.setHeight(35); this.updateText(TYPO3.Components.PageTree.LLL.dropZoneElementRestored); + this.app.doLayout(); (function() { if (this.textClickHandler) { Index: t3lib/js/extjs/components/pagetree/javascript/tree.js =================================================================== --- t3lib/js/extjs/components/pagetree/javascript/tree.js (Revision 10378) +++ t3lib/js/extjs/components/pagetree/javascript/tree.js (Arbeitskopie) @@ -107,7 +107,7 @@ /** * Main applicaton - * + * * @cfg {TYPO3.Components.PageTree.App} */ app: null, @@ -435,6 +435,7 @@ stopDd: function() { if (this.deletionDropZoneId) { Ext.getCmp(this.deletionDropZoneId).hide(); + this.app.doLayout(); } }, @@ -453,6 +454,7 @@ (nodeHasChildNodes && TYPO3.Components.PageTree.Configuration.canDeleteRecursivly) )) { Ext.getCmp(this.deletionDropZoneId).show(); + this.app.doLayout(); } this.initDDProxyElement(); }, Index: t3lib/js/extjs/components/pagetree/javascript/app.js =================================================================== --- t3lib/js/extjs/components/pagetree/javascript/app.js (Revision 10378) +++ t3lib/js/extjs/components/pagetree/javascript/app.js (Arbeitskopie) @@ -64,23 +64,6 @@ activeTree: null, /** - * Listeners - * - * The afterlayout wizard relayoutes the navigation container to fix some nasty - * scrollbar issues. - * - * @type {Object} - */ - listeners: { - afterlayout: { - fn: function() { - this.ownerCt.doLayout(); - }, - buffer: 250 - } - }, - - /** * Initializes the application * * Set's the necessary language labels, configuration options and sprite icons by an @@ -187,6 +170,11 @@ if (TYPO3.Components.PageTree.Configuration.indicator !== '') { this.addIndicatorItems(); } + this.doLayout(); + + this.ownerCt.on('resize', function() { + this.doLayout(); + }); }, this); TYPO3.Components.PageTree.App.superclass.initComponent.apply(this, arguments); @@ -269,11 +257,15 @@ } component.listeners.afterrender = { + scope: this, fn: this.afterTopPanelItemAdded } } - return Ext.getCmp(this.id + '-indicatorBar').add(component); + var indicator = Ext.getCmp(this.id + '-indicatorBar').add(component); + this.doLayout(); + + return indicator; }, /** @@ -285,6 +277,7 @@ afterTopPanelItemAdded: function(component) { var topPanelItems = Ext.getCmp(this.id + '-topPanelItems'); topPanelItems.setHeight(topPanelItems.getHeight() + component.getHeight() + 3); + this.doLayout(); }, /** @@ -297,6 +290,7 @@ var topPanelItems = Ext.getCmp(this.id + '-topPanelItems'); topPanelItems.setHeight(topPanelItems.getHeight() - component.getHeight() - 3); Ext.getCmp(this.id + '-indicatorBar').remove(component); + this.doLayout(); }, /**