View Full Version : [FIXED] Calling 'removeAll()' on a toolbar removed the toolbar Title

19 Nov 2011, 6:27 PM
Calling 'removeAll()' on a toolbar removes the toolbar Title. Trying to set the title after that does not work (the title stays invisible).

The title is also removed if you call 'removeAt(0)' on a toolbar with no items. The same thing happens if you try 'setTitle()' on it afterwards.

I've also noticed that if you set a title and an item, the title seems to be pushed out of center.

21 Nov 2011, 1:38 AM
Yes actually that happens because in ST 2, has been developed a new component named "Ext.Title" and placed as the first item inside the Toolbar Component.

Thank you for reporting this.

21 Nov 2011, 9:16 AM
In my opinion this shouldn't be specified as a bug. The removeAll method clearly states all immediate children will be removed, not excluding docked items. Perhaps it would be more appropriate to add a method like removeUndocked to the abstract component that would only remove items that are not docked rather than changing the behavior of removeAll.