ExtJS 3.4 doLayout on panel with hbox
I have a panel and inside the panel i have components arranged in hbox layout. Say
Now when i remove hbox2 dynamically and perform panel.doLayout(), the below error is displayed in firebug,
"Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLFormElement.insertBefore]"
The corresponding hbox gets removed from panel items. But the panel cannot be recalculated using doLayout. Any ideas?
In theory this should work fine, therefore I guess you'll have to provide this piece of code to see if there's anything strange at work...
the error is thrown when i remove the component from panel.
panel.remove(componentId, true); // the error is thrown here
As I said, that code is correct - therefore there must be an issue lying elsewhere which we obviously have no visibility of...
Ok. i will try to post my code after removal of codes specific to my framework.
Tags for this Thread