Skip to content

Instantly share code, notes, and snippets.

View alperg's full-sized avatar

Alper Gokcehan alperg

  • RTP, NC, United States
View GitHub Profile
/**
* How to override toolbar menu's default behavior
* (enableOverflow = true)
*/
Ext.define('Ext.layout.container.boxOverflow.CustomToolbarMenu', {
extend: 'Ext.layout.container.boxOverflow.Menu',
showTrigger: function() {},
});
@alperg
alperg / extjs-overnesting.js
Created July 23, 2013 13:49
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(c.id + ' only contains 1 child: check for overnesting');
c.rendered && c.el.frame('red');
}
}));