X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/layout/container/Container.js diff --git a/src/layout/container/Container.js b/src/layout/container/Container.js index 18c79f2d..42a3555f 100644 --- a/src/layout/container/Container.js +++ b/src/layout/container/Container.js @@ -15,8 +15,8 @@ If you are unsure which license is appropriate for your use, please contact the /** * @class Ext.layout.container.Container * @extends Ext.layout.container.AbstractContainer -*

This class is intended to be extended or created via the {@link Ext.container.Container#layout layout} -* configuration property. See {@link Ext.container.Container#layout} for additional details.

+*

This class is intended to be extended or created via the {@link Ext.container.Container#layout layout} +* configuration property. See {@link Ext.container.Container#layout} for additional details.

*/ Ext.define('Ext.layout.container.Container', { @@ -24,14 +24,14 @@ Ext.define('Ext.layout.container.Container', { extend: 'Ext.layout.container.AbstractContainer', alternateClassName: 'Ext.layout.ContainerLayout', - + /* End Definitions */ layoutItem: function(item, box) { - box = box || {}; - if (item.componentLayout.initialized !== true) { - this.setItemSize(item, box.width || item.width || undefined, box.height || item.height || undefined); - // item.doComponentLayout(box.width || item.width || undefined, box.height || item.height || undefined); + if (box) { + item.doComponentLayout(box.width, box.height); + } else { + item.doComponentLayout(); } },