git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-5@10380
709f56b5-9817-0410-a4d7-
c38de5d9e867
+2011-02-03 Steffen Kamper <steffen@typo3.org>
+
+ * Fixed bug #17407: Pagetree cause endless loop in ExtJS events
+
2011-02-02 Steffen Kamper <steffen@typo3.org>
* Fixed bug #17434: Pagetree: when start edit, the text should be selected
2011-02-02 Steffen Kamper <steffen@typo3.org>
* Fixed bug #17434: Pagetree: when start edit, the text should be selected
- /**
- * 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
*
/**
* Initializes the application
*
if (TYPO3.Components.PageTree.Configuration.indicator !== '') {
this.addIndicatorItems();
}
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);
}, this);
TYPO3.Components.PageTree.App.superclass.initComponent.apply(this, arguments);
}
component.listeners.afterrender = {
}
component.listeners.afterrender = {
fn: this.afterTopPanelItemAdded
}
}
fn: this.afterTopPanelItemAdded
}
}
- return Ext.getCmp(this.id + '-indicatorBar').add(component);
+ var indicator = Ext.getCmp(this.id + '-indicatorBar').add(component);
+ this.doLayout();
+
+ return indicator;
afterTopPanelItemAdded: function(component) {
var topPanelItems = Ext.getCmp(this.id + '-topPanelItems');
topPanelItems.setHeight(topPanelItems.getHeight() + component.getHeight() + 3);
afterTopPanelItemAdded: function(component) {
var topPanelItems = Ext.getCmp(this.id + '-topPanelItems');
topPanelItems.setHeight(topPanelItems.getHeight() + component.getHeight() + 3);
var topPanelItems = Ext.getCmp(this.id + '-topPanelItems');
topPanelItems.setHeight(topPanelItems.getHeight() - component.getHeight() - 3);
Ext.getCmp(this.id + '-indicatorBar').remove(component);
var topPanelItems = Ext.getCmp(this.id + '-topPanelItems');
topPanelItems.setHeight(topPanelItems.getHeight() - component.getHeight() - 3);
Ext.getCmp(this.id + '-indicatorBar').remove(component);
++this.amountOfDrops;
(function() {
++this.amountOfDrops;
(function() {
this.setHeight(35);
this.updateText(TYPO3.Components.PageTree.LLL.dropToRemove, false);
this.updateIcon(TYPO3.Components.PageTree.Sprites.TrashCan);
this.setHeight(35);
this.updateText(TYPO3.Components.PageTree.LLL.dropToRemove, false);
this.updateIcon(TYPO3.Components.PageTree.Sprites.TrashCan);
}
this.setHeight(35);
this.updateText(TYPO3.Components.PageTree.LLL.dropZoneElementRestored);
}
this.setHeight(35);
this.updateText(TYPO3.Components.PageTree.LLL.dropZoneElementRestored);
(function() {
if (this.textClickHandler) {
(function() {
if (this.textClickHandler) {
* @cfg {TYPO3.Components.PageTree.App}
*/
app: null,
* @cfg {TYPO3.Components.PageTree.App}
*/
app: null,
stopDd: function() {
if (this.deletionDropZoneId) {
Ext.getCmp(this.deletionDropZoneId).hide();
stopDd: function() {
if (this.deletionDropZoneId) {
Ext.getCmp(this.deletionDropZoneId).hide();
(nodeHasChildNodes && TYPO3.Components.PageTree.Configuration.canDeleteRecursivly)
)) {
Ext.getCmp(this.deletionDropZoneId).show();
(nodeHasChildNodes && TYPO3.Components.PageTree.Configuration.canDeleteRecursivly)
)) {
Ext.getCmp(this.deletionDropZoneId).show();
}
this.initDDProxyElement();
},
}
this.initDDProxyElement();
},