X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/src/widgets/layout/CardLayout.js diff --git a/src/widgets/layout/CardLayout.js b/src/widgets/layout/CardLayout.js index 6c3c9024..18f4b70b 100644 --- a/src/widgets/layout/CardLayout.js +++ b/src/widgets/layout/CardLayout.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.0.0 + * Ext JS Library 3.0.3 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license @@ -106,10 +106,11 @@ Ext.layout.CardLayout = Ext.extend(Ext.layout.FitLayout, { if(this.activeItem){ this.activeItem.hide(); } + var layout = item.doLayout && (this.layoutOnCardChange || !item.rendered); this.activeItem = item; item.show(); - this.container.doLayout(); - if(this.layoutOnCardChange && item.doLayout){ + this.layout(); + if(layout){ item.doLayout(); } }