Skip to content

Instantly share code, notes, and snippets.

@sourabh86
Created January 28, 2015 18:32
Show Gist options
  • Save sourabh86/2a580642a2041ee3f69d to your computer and use it in GitHub Desktop.
Save sourabh86/2a580642a2041ee3f69d to your computer and use it in GitHub Desktop.
Overriding Ext.layout.Default. This should be placed under /app/override/layout/
Ext.define('Ext.layout.override.Default', {
override: 'Ext.layout.Default',
removeInnerItem: function(item) {
// check for valid element
if (item.element !== null) {
item.element.detach();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment