View Full Version : [UNKNOWN][3.x] Panel.onLayout

15 Dec 2009, 7:37 AM
onLayout is a template method starting at the Ext.Container level to provide a hook for logic to be performed at layout time.

The Panel's implementation does not call its superclass's version:

onLayout : function(shallow, force){
Ext.Panel.superclass.onLayout.apply(this, arguments);
if(this.hasLayout && this.toolbars.length > 0){
Ext.each(this.toolbars, function(tb){
tb.doLayout(undefined, force);

(There currently is no superclass implementation in the Ext trunk, but this should be technically correct... because there will be!)