PDA

View Full Version : Docked Panel not expanding



hciftci
17 May 2012, 12:32 PM
Hi,
I have multiple nested panels, one of them has a border layout with a FormPanel docked on the right side, and collapsed by default. When I use FormPanel.expand() I get this error:



me.hiddenDocked is undefined
l = me.hiddenDocked.length,
ext-all-debug.js (line 38299)


Like this looks the panel:

35364

And thats how I call the expand function:


refs: [{ref: 'FormUser', selector: 'FormUser'}],

.....
onButtonClick: function() {
var formPanel = this.getFormUser();
formPanel.expand();
}


What could be the problem?

scottmartin
17 May 2012, 4:03 PM
Is your getter working?

If you place a watch on formPanel, is it a valid object? ... or call console.log(formPanel) and look in the console.

Regards.
Scott.

hciftci
17 May 2012, 5:03 PM
The firebug debugger shows me following:
me.hiddenDocked = undefined
me = FormPanel object

Btw, the FormPanel is not docked but assigned to the east region, just to clarify.

scottmartin
21 May 2012, 9:56 AM
Can you provde a small working example to replicate this behavior?

Scott.