Skip to content

Instantly share code, notes, and snippets.

@marcojahn
Forked from ExtAnimal/gist:6038943
Created March 12, 2014 16:17
Show Gist options
  • Save marcojahn/9510311 to your computer and use it in GitHub Desktop.
Save marcojahn/9510311 to your computer and use it in GitHub Desktop.
javascript:(Ext.ComponentManager.each(function(c) {
c = Ext.getCmp(c);
if (c.isContainer && !c.isHeader && !c.isXType('tablepanel') && !c.isXType('headercontainer') && !c.hasCls('x-fieldset-header') && c.items.items.length === 1) {
console.log(c.id + ' only contains 1 child: check for overnesting');
c.rendered && c.el.frame('red');
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment