X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/TableLayout.html diff --git a/docs/source/TableLayout.html b/docs/source/TableLayout.html index b224f8d4..f396e3bc 100644 --- a/docs/source/TableLayout.html +++ b/docs/source/TableLayout.html @@ -1,17 +1,12 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-
/** + + + + The source code + + + + +
/** * @class Ext.layout.TableLayout * @extends Ext.layout.ContainerLayout *

This layout allows you to easily render content into an HTML table. The total number of columns can be @@ -79,6 +74,8 @@ Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { // private monitorResize:false, + + targetCls: 'x-table-layout-ct',

/** * @cfg {Object} tableAttrs @@ -113,8 +110,6 @@ Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { var cs = ct.items.items, len = cs.length, c, i; if(!this.table){ - target.addClass('x-table-layout-ct'); - this.table = target.createChild( Ext.apply({tag:'table', cls:'x-table-layout', cellspacing: 0, cn: {tag: 'tbody'}}, this.tableAttrs), null, true); } @@ -183,7 +178,7 @@ Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { this.configureItem(c, position); }else if(c && !this.isValidParent(c, target)){ var container = this.getNextCell(c); - container.insertBefore(c.getDomPositionEl().dom, null); + container.insertBefore(c.getPositionEl().dom, null); c.container = Ext.get(container); this.configureItem(c, position); } @@ -191,7 +186,7 @@ Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { // private isValidParent : function(c, target){ - return c.getDomPositionEl().up('table', 5).dom.parentNode === (target.dom || target); + return c.getPositionEl().up('table', 5).dom.parentNode === (target.dom || target); }
/** @@ -200,6 +195,6 @@ Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { */ }); -Ext.Container.LAYOUTS['table'] = Ext.layout.TableLayout;
- +Ext.Container.LAYOUTS['table'] = Ext.layout.TableLayout;
+ \ No newline at end of file