X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/layout/container/boxOverflow/None.js diff --git a/src/layout/container/boxOverflow/None.js b/src/layout/container/boxOverflow/None.js new file mode 100644 index 00000000..01fd1a90 --- /dev/null +++ b/src/layout/container/boxOverflow/None.js @@ -0,0 +1,31 @@ +/** + * @class Ext.layout.container.boxOverflow.None + * @extends Object + * @private + * Base class for Box Layout overflow handlers. These specialized classes are invoked when a Box Layout + * (either an HBox or a VBox) has child items that are either too wide (for HBox) or too tall (for VBox) + * for its container. + */ +Ext.define('Ext.layout.container.boxOverflow.None', { + + alternateClassName: 'Ext.layout.boxOverflow.None', + + constructor: function(layout, config) { + this.layout = layout; + Ext.apply(this, config || {}); + }, + + handleOverflow: Ext.emptyFn, + + clearOverflow: Ext.emptyFn, + + /** + * @private + * Normalizes an item reference, string id or numerical index into a reference to the item + * @param {Ext.Component|String|Number} item The item reference, id or index + * @return {Ext.Component} The item + */ + getItem: function(item) { + return this.layout.owner.getComponent(item); + } +}); \ No newline at end of file