Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2013 13:00
What would you like to do?
Overnesting highlighter
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( + ' only contains 1 child: check for overnesting');
c.rendered && c.el.frame('red');
Copy link

I tried putting this in chrome console but it says "TypeError: Cannot read property 'each' of undefined"
I am using ExtJs3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment