PDA

View Full Version : ExtJS 3.4 doLayout on panel with hbox



ijayaprasad
3 Sep 2012, 2:14 AM
I have a panel and inside the panel i have components arranged in hbox layout. Say

Panel
hbox:1
hbox:2
hbox:3
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?

willigogs
3 Sep 2012, 2:19 AM
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...

ijayaprasad
3 Sep 2012, 2:51 AM
the error is thrown when i remove the component from panel.

panel.remove(componentId, true); // the error is thrown here
panel.doLayout();

willigogs
3 Sep 2012, 2:53 AM
As I said, that code is correct - therefore there must be an issue lying elsewhere which we obviously have no visibility of...

ijayaprasad
3 Sep 2012, 3:07 AM
Ok. i will try to post my code after removal of codes specific to my framework.