Ext version tested:

  • Ext 4.2.1

  • Ext 4.2.2

  • Ext 5


Browser versions tested against: DOCTYPE tested against:

HTML5: <!DOCTYPE html>

Description:


When I create a panel with border layout and inside this panel there is only a collapsible panel in west region, when I expand the panel an error is shown due to center region is not defined. Is mandatory to define a center region?


Fiddle: http://ift.tt/1j1FLJd


I've been reading Ext.panel.Panel code and I've seen this:



Code:



center = me.ownerLayout ? me.ownerLayout.centerRegion: null;
...

if (animate) {
...

if (center && !floatedPos) {
center.hidden = true;
}

Ext.resumeLayouts(true);
center.hidden = false;
me.el.addCls(floatCls);
...
}


There is a guard before setting center.hidden to true but later there isn't, could it be an error in code? Is not an error because the layout is not used properly?

Steps to reproduce the problem:

Expand a collapsible panel inside a border layout without center region defined.


The result that was expected:

An expand event should be triggered.


The result that occurs instead:

expand event is not triggered because of the error metioned above.