From: Alan Knowles Date: Fri, 18 Mar 2011 03:53:12 +0000 (+0800) Subject: Roo/grid/GridView.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=0f3b1b7cf880a8a4177c5ea8ffb9d02a6a65efeb Roo/grid/GridView.js --- diff --git a/Roo/grid/GridView.js b/Roo/grid/GridView.js index a08224553a..42617f458b 100644 --- a/Roo/grid/GridView.js +++ b/Roo/grid/GridView.js @@ -119,6 +119,7 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { if(!tpls.master){ tpls.master = new Roo.Template( '
', + '', '
', '
', '
', @@ -130,7 +131,7 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { '
{body}
', "
", '
', - '', + '
 
', "
" ); @@ -308,25 +309,27 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { var cs = el.childNodes; this.el = new E(el); - this.headerPanel = new E(el.firstChild); + + this.focusEl = new E(el.firstChild); + this.focusEl.swallowEvent("click", true); + + this.headerPanel = new E(cs[1]); this.headerPanel.enableDisplayMode("block"); - this.scroller = new E(cs[1]); + this.scroller = new E(cs[2]); this.scrollSizer = new E(this.scroller.dom.firstChild); - this.lockedWrap = new E(cs[2]); + this.lockedWrap = new E(cs[3]); this.lockedHd = new E(this.lockedWrap.dom.firstChild); this.lockedBody = new E(this.lockedWrap.dom.childNodes[1]); - this.mainWrap = new E(cs[3]); + this.mainWrap = new E(cs[4]); this.mainHd = new E(this.mainWrap.dom.firstChild); this.mainBody = new E(this.mainWrap.dom.childNodes[1]); - this.footerPanel = new E(cs[4]); + this.footerPanel = new E(cs[5]); this.footerPanel.enableDisplayMode("block"); - this.focusEl = new E(cs[5]); - this.focusEl.swallowEvent("click", true); this.resizeProxy = new E(cs[6]); this.headerSelector = String.format(