From cb643b5cd42512e40dd1d2e5506982bd08e2ba73 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 8 Mar 2011 00:05:55 +0000 Subject: [PATCH] Fix white space changes --- roojs-debug.js | 336 +++++++++++++++++++++++----------------------- roojs-ui-debug.js | 336 +++++++++++++++++++++++----------------------- 2 files changed, 336 insertions(+), 336 deletions(-) diff --git a/roojs-debug.js b/roojs-debug.js index b6117b3c2d..0d6014cc5d 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -47237,98 +47237,98 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { }, init: function(grid){ - Roo.grid.GridView.superclass.init.call(this, grid); + Roo.grid.GridView.superclass.init.call(this, grid); - this.bind(grid.dataSource, grid.colModel); + this.bind(grid.dataSource, grid.colModel); - grid.on("headerclick", this.handleHeaderClick, this); + grid.on("headerclick", this.handleHeaderClick, this); if(grid.trackMouseOver){ grid.on("mouseover", this.onRowOver, this); - grid.on("mouseout", this.onRowOut, this); - } - grid.cancelTextSelection = function(){}; - this.gridId = grid.id; - - var tpls = this.templates || {}; - - if(!tpls.master){ - tpls.master = new Roo.Template( - '
', - '
', - '
', - '
', - '
{lockedHeader}
', - '
{lockedBody}
', - "
", - '
', - '
{header}
', - '
{body}
', - "
", - '
', - '', - '
 
', - "
" - ); - tpls.master.disableformats = true; - } + grid.on("mouseout", this.onRowOut, this); + } + grid.cancelTextSelection = function(){}; + this.gridId = grid.id; + + var tpls = this.templates || {}; + + if(!tpls.master){ + tpls.master = new Roo.Template( + '
', + '
', + '
', + '
', + '
{lockedHeader}
', + '
{lockedBody}
', + "
", + '
', + '
{header}
', + '
{body}
', + "
", + '
', + '', + '
 
', + "
" + ); + tpls.master.disableformats = true; + } - if(!tpls.header){ - tpls.header = new Roo.Template( - '', - '{cells}', - "
{splits}" - ); - tpls.header.disableformats = true; - } - tpls.header.compile(); - - if(!tpls.hcell){ - tpls.hcell = new Roo.Template( - '
', - '
{value}
', - "
" - ); - tpls.hcell.disableFormats = true; - } - tpls.hcell.compile(); + if(!tpls.header){ + tpls.header = new Roo.Template( + '', + '{cells}', + "
{splits}" + ); + tpls.header.disableformats = true; + } + tpls.header.compile(); - if(!tpls.hsplit){ - tpls.hsplit = new Roo.Template('
 
'); - tpls.hsplit.disableFormats = true; - } - tpls.hsplit.compile(); - - if(!tpls.body){ - tpls.body = new Roo.Template( - '', - "{rows}", - "
" - ); - tpls.body.disableFormats = true; - } - tpls.body.compile(); + if(!tpls.hcell){ + tpls.hcell = new Roo.Template( + '
', + '
{value}
', + "
" + ); + tpls.hcell.disableFormats = true; + } + tpls.hcell.compile(); - if(!tpls.row){ - tpls.row = new Roo.Template('{cells}'); - tpls.row.disableFormats = true; - } - tpls.row.compile(); - - if(!tpls.cell){ - tpls.cell = new Roo.Template( - '', - '
{value}
', - "" - ); + if(!tpls.hsplit){ + tpls.hsplit = new Roo.Template('
 
'); + tpls.hsplit.disableFormats = true; + } + tpls.hsplit.compile(); + + if(!tpls.body){ + tpls.body = new Roo.Template( + '', + "{rows}", + "
" + ); + tpls.body.disableFormats = true; + } + tpls.body.compile(); + + if(!tpls.row){ + tpls.row = new Roo.Template('{cells}'); + tpls.row.disableFormats = true; + } + tpls.row.compile(); + + if(!tpls.cell){ + tpls.cell = new Roo.Template( + '', + '
{value}
', + "" + ); tpls.cell.disableFormats = true; } - tpls.cell.compile(); + tpls.cell.compile(); - this.templates = tpls; - }, + this.templates = tpls; + }, - // remap these for backwards compat + // remap these for backwards compat onColWidthChange : function(){ this.updateColumns.apply(this, arguments); }, @@ -47350,11 +47350,11 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { this.updateHeaderSortState(); }, - onClear : function(){ + onClear : function(){ this.refresh(); }, - onUpdate : function(ds, record){ + onUpdate : function(ds, record){ this.refreshRow(record); }, @@ -47422,9 +47422,9 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { this.headerPanel.show(); } return this.headerPanel; - }, + }, - /** + /** * Gets a panel in the footer of the grid that can be used for toolbars etc. * After modifying the contents of this panel a call to grid.autoSize() may be * required to register any changes in size. @@ -47436,82 +47436,82 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { this.footerPanel.show(); } return this.footerPanel; - }, + }, - initElements : function(){ - var E = Roo.Element; - var el = this.grid.getGridEl().dom.firstChild; - var cs = el.childNodes; + initElements : function(){ + var E = Roo.Element; + var el = this.grid.getGridEl().dom.firstChild; + var cs = el.childNodes; - this.el = new E(el); - this.headerPanel = new E(el.firstChild); - this.headerPanel.enableDisplayMode("block"); + this.el = new E(el); + this.headerPanel = new E(el.firstChild); + this.headerPanel.enableDisplayMode("block"); this.scroller = new E(cs[1]); - this.scrollSizer = new E(this.scroller.dom.firstChild); + this.scrollSizer = new E(this.scroller.dom.firstChild); - this.lockedWrap = new E(cs[2]); - this.lockedHd = new E(this.lockedWrap.dom.firstChild); - this.lockedBody = new E(this.lockedWrap.dom.childNodes[1]); + this.lockedWrap = new E(cs[2]); + this.lockedHd = new E(this.lockedWrap.dom.firstChild); + this.lockedBody = new E(this.lockedWrap.dom.childNodes[1]); - this.mainWrap = new E(cs[3]); - this.mainHd = new E(this.mainWrap.dom.firstChild); - this.mainBody = new E(this.mainWrap.dom.childNodes[1]); + this.mainWrap = new E(cs[3]); + 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.enableDisplayMode("block"); + this.footerPanel = new E(cs[4]); + 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( - '#{0} td.x-grid-hd, #{1} td.x-grid-hd', - this.lockedHd.id, this.mainHd.id - ); + this.headerSelector = String.format( + '#{0} td.x-grid-hd, #{1} td.x-grid-hd', + this.lockedHd.id, this.mainHd.id + ); - this.splitterSelector = String.format( - '#{0} div.x-grid-split, #{1} div.x-grid-split', - this.idToCssName(this.lockedHd.id), this.idToCssName(this.mainHd.id) - ); + this.splitterSelector = String.format( + '#{0} div.x-grid-split, #{1} div.x-grid-split', + this.idToCssName(this.lockedHd.id), this.idToCssName(this.mainHd.id) + ); }, idToCssName : function(s) { return s.replace(/[^a-z0-9]+/ig, '-'); }, - getHeaderCell : function(index){ - return Roo.DomQuery.select(this.headerSelector)[index]; - }, + getHeaderCell : function(index){ + return Roo.DomQuery.select(this.headerSelector)[index]; + }, - getHeaderCellMeasure : function(index){ - return this.getHeaderCell(index).firstChild; - }, + getHeaderCellMeasure : function(index){ + return this.getHeaderCell(index).firstChild; + }, - getHeaderCellText : function(index){ - return this.getHeaderCell(index).firstChild.firstChild; - }, + getHeaderCellText : function(index){ + return this.getHeaderCell(index).firstChild.firstChild; + }, - getLockedTable : function(){ - return this.lockedBody.dom.firstChild; - }, + getLockedTable : function(){ + return this.lockedBody.dom.firstChild; + }, - getBodyTable : function(){ - return this.mainBody.dom.firstChild; - }, + getBodyTable : function(){ + return this.mainBody.dom.firstChild; + }, - getLockedRow : function(index){ - return this.getLockedTable().rows[index]; - }, + getLockedRow : function(index){ + return this.getLockedTable().rows[index]; + }, - getRow : function(index){ - return this.getBodyTable().rows[index]; - }, + getRow : function(index){ + return this.getBodyTable().rows[index]; + }, - getRowComposite : function(index){ - if(!this.rowEl){ - this.rowEl = new Roo.CompositeElementLite(); - } + getRowComposite : function(index){ + if(!this.rowEl){ + this.rowEl = new Roo.CompositeElementLite(); + } var els = [], lrow, mrow; if(lrow = this.getLockedRow(index)){ els.push(lrow); @@ -47520,27 +47520,27 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { els.push(mrow); } this.rowEl.elements = els; - return this.rowEl; - }, + return this.rowEl; + }, - getCell : function(rowIndex, colIndex){ - var locked = this.cm.getLockedCount(); - var source; - if(colIndex < locked){ - source = this.lockedBody.dom.firstChild; - }else{ - source = this.mainBody.dom.firstChild; - colIndex -= locked; - } + getCell : function(rowIndex, colIndex){ + var locked = this.cm.getLockedCount(); + var source; + if(colIndex < locked){ + source = this.lockedBody.dom.firstChild; + }else{ + source = this.mainBody.dom.firstChild; + colIndex -= locked; + } return source.rows[rowIndex].childNodes[colIndex]; - }, + }, - getCellText : function(rowIndex, colIndex){ - return this.getCell(rowIndex, colIndex).firstChild.firstChild; - }, + getCellText : function(rowIndex, colIndex){ + return this.getCell(rowIndex, colIndex).firstChild.firstChild; + }, - getCellBox : function(cell){ - var b = this.fly(cell).getBox(); + getCellBox : function(cell){ + var b = this.fly(cell).getBox(); if(Roo.isOpera){ // opera fails to report the Y b.y = cell.offsetTop + this.mainBody.getY(); } @@ -47585,21 +47585,21 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { }, getColumnId : function(index){ - return this.cm.getColumnId(index); - }, + return this.cm.getColumnId(index); + }, getSplitters : function() { - if(this.splitterSelector){ - return Roo.DomQuery.select(this.splitterSelector); - }else{ - return null; - } - }, + if(this.splitterSelector){ + return Roo.DomQuery.select(this.splitterSelector); + }else{ + return null; + } + }, - getSplitter : function(index){ - return this.getSplitters()[index]; - }, + getSplitter : function(index){ + return this.getSplitters()[index]; + }, onRowOver : function(e, t){ var row; @@ -47616,7 +47616,7 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { }, renderHeaders : function(){ - var cm = this.cm; + var cm = this.cm; var ct = this.templates.hcell, ht = this.templates.header, st = this.templates.hsplit; var cb = [], lb = [], sb = [], lsb = [], p = {}; for(var i = 0, len = cm.getColumnCount(); i < len; i++){ @@ -47636,9 +47636,9 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { } return [ht.apply({cells: lb.join(""), splits:lsb.join("")}), ht.apply({cells: cb.join(""), splits:sb.join("")})]; - }, + }, - updateHeaders : function(){ + updateHeaders : function(){ var html = this.renderHeaders(); this.lockedHd.update(html[0]); this.mainHd.update(html[1]); @@ -47707,7 +47707,7 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { var sright = sleft + c.clientWidth; if(ctop < stop){ - c.scrollTop = ctop; + c.scrollTop = ctop; }else if(cbot > sbot){ c.scrollTop = cbot-ch; } @@ -48288,10 +48288,10 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { return; } var dm = g.dataSource, cm = g.colModel; - if(!cm.isSortable(index)){ + if(!cm.isSortable(index)){ return; } - g.stopEditing(); + g.stopEditing(); dm.sort(cm.getDataIndex(index)); }, diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index eaf8aa035e..a65e70ca80 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -32846,98 +32846,98 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { }, init: function(grid){ - Roo.grid.GridView.superclass.init.call(this, grid); + Roo.grid.GridView.superclass.init.call(this, grid); - this.bind(grid.dataSource, grid.colModel); + this.bind(grid.dataSource, grid.colModel); - grid.on("headerclick", this.handleHeaderClick, this); + grid.on("headerclick", this.handleHeaderClick, this); if(grid.trackMouseOver){ grid.on("mouseover", this.onRowOver, this); - grid.on("mouseout", this.onRowOut, this); - } - grid.cancelTextSelection = function(){}; - this.gridId = grid.id; - - var tpls = this.templates || {}; - - if(!tpls.master){ - tpls.master = new Roo.Template( - '
', - '
', - '
', - '
', - '
{lockedHeader}
', - '
{lockedBody}
', - "
", - '
', - '
{header}
', - '
{body}
', - "
", - '
', - '', - '
 
', - "
" - ); - tpls.master.disableformats = true; - } + grid.on("mouseout", this.onRowOut, this); + } + grid.cancelTextSelection = function(){}; + this.gridId = grid.id; + + var tpls = this.templates || {}; + + if(!tpls.master){ + tpls.master = new Roo.Template( + '
', + '
', + '
', + '
', + '
{lockedHeader}
', + '
{lockedBody}
', + "
", + '
', + '
{header}
', + '
{body}
', + "
", + '
', + '', + '
 
', + "
" + ); + tpls.master.disableformats = true; + } - if(!tpls.header){ - tpls.header = new Roo.Template( - '', - '{cells}', - "
{splits}" - ); - tpls.header.disableformats = true; - } - tpls.header.compile(); - - if(!tpls.hcell){ - tpls.hcell = new Roo.Template( - '
', - '
{value}
', - "
" - ); - tpls.hcell.disableFormats = true; - } - tpls.hcell.compile(); + if(!tpls.header){ + tpls.header = new Roo.Template( + '', + '{cells}', + "
{splits}" + ); + tpls.header.disableformats = true; + } + tpls.header.compile(); - if(!tpls.hsplit){ - tpls.hsplit = new Roo.Template('
 
'); - tpls.hsplit.disableFormats = true; - } - tpls.hsplit.compile(); - - if(!tpls.body){ - tpls.body = new Roo.Template( - '', - "{rows}", - "
" - ); - tpls.body.disableFormats = true; - } - tpls.body.compile(); + if(!tpls.hcell){ + tpls.hcell = new Roo.Template( + '
', + '
{value}
', + "
" + ); + tpls.hcell.disableFormats = true; + } + tpls.hcell.compile(); - if(!tpls.row){ - tpls.row = new Roo.Template('{cells}'); - tpls.row.disableFormats = true; - } - tpls.row.compile(); - - if(!tpls.cell){ - tpls.cell = new Roo.Template( - '', - '
{value}
', - "" - ); + if(!tpls.hsplit){ + tpls.hsplit = new Roo.Template('
 
'); + tpls.hsplit.disableFormats = true; + } + tpls.hsplit.compile(); + + if(!tpls.body){ + tpls.body = new Roo.Template( + '', + "{rows}", + "
" + ); + tpls.body.disableFormats = true; + } + tpls.body.compile(); + + if(!tpls.row){ + tpls.row = new Roo.Template('{cells}'); + tpls.row.disableFormats = true; + } + tpls.row.compile(); + + if(!tpls.cell){ + tpls.cell = new Roo.Template( + '', + '
{value}
', + "" + ); tpls.cell.disableFormats = true; } - tpls.cell.compile(); + tpls.cell.compile(); - this.templates = tpls; - }, + this.templates = tpls; + }, - // remap these for backwards compat + // remap these for backwards compat onColWidthChange : function(){ this.updateColumns.apply(this, arguments); }, @@ -32959,11 +32959,11 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { this.updateHeaderSortState(); }, - onClear : function(){ + onClear : function(){ this.refresh(); }, - onUpdate : function(ds, record){ + onUpdate : function(ds, record){ this.refreshRow(record); }, @@ -33031,9 +33031,9 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { this.headerPanel.show(); } return this.headerPanel; - }, + }, - /** + /** * Gets a panel in the footer of the grid that can be used for toolbars etc. * After modifying the contents of this panel a call to grid.autoSize() may be * required to register any changes in size. @@ -33045,82 +33045,82 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { this.footerPanel.show(); } return this.footerPanel; - }, + }, - initElements : function(){ - var E = Roo.Element; - var el = this.grid.getGridEl().dom.firstChild; - var cs = el.childNodes; + initElements : function(){ + var E = Roo.Element; + var el = this.grid.getGridEl().dom.firstChild; + var cs = el.childNodes; - this.el = new E(el); - this.headerPanel = new E(el.firstChild); - this.headerPanel.enableDisplayMode("block"); + this.el = new E(el); + this.headerPanel = new E(el.firstChild); + this.headerPanel.enableDisplayMode("block"); this.scroller = new E(cs[1]); - this.scrollSizer = new E(this.scroller.dom.firstChild); + this.scrollSizer = new E(this.scroller.dom.firstChild); - this.lockedWrap = new E(cs[2]); - this.lockedHd = new E(this.lockedWrap.dom.firstChild); - this.lockedBody = new E(this.lockedWrap.dom.childNodes[1]); + this.lockedWrap = new E(cs[2]); + this.lockedHd = new E(this.lockedWrap.dom.firstChild); + this.lockedBody = new E(this.lockedWrap.dom.childNodes[1]); - this.mainWrap = new E(cs[3]); - this.mainHd = new E(this.mainWrap.dom.firstChild); - this.mainBody = new E(this.mainWrap.dom.childNodes[1]); + this.mainWrap = new E(cs[3]); + 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.enableDisplayMode("block"); + this.footerPanel = new E(cs[4]); + 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( - '#{0} td.x-grid-hd, #{1} td.x-grid-hd', - this.lockedHd.id, this.mainHd.id - ); + this.headerSelector = String.format( + '#{0} td.x-grid-hd, #{1} td.x-grid-hd', + this.lockedHd.id, this.mainHd.id + ); - this.splitterSelector = String.format( - '#{0} div.x-grid-split, #{1} div.x-grid-split', - this.idToCssName(this.lockedHd.id), this.idToCssName(this.mainHd.id) - ); + this.splitterSelector = String.format( + '#{0} div.x-grid-split, #{1} div.x-grid-split', + this.idToCssName(this.lockedHd.id), this.idToCssName(this.mainHd.id) + ); }, idToCssName : function(s) { return s.replace(/[^a-z0-9]+/ig, '-'); }, - getHeaderCell : function(index){ - return Roo.DomQuery.select(this.headerSelector)[index]; - }, + getHeaderCell : function(index){ + return Roo.DomQuery.select(this.headerSelector)[index]; + }, - getHeaderCellMeasure : function(index){ - return this.getHeaderCell(index).firstChild; - }, + getHeaderCellMeasure : function(index){ + return this.getHeaderCell(index).firstChild; + }, - getHeaderCellText : function(index){ - return this.getHeaderCell(index).firstChild.firstChild; - }, + getHeaderCellText : function(index){ + return this.getHeaderCell(index).firstChild.firstChild; + }, - getLockedTable : function(){ - return this.lockedBody.dom.firstChild; - }, + getLockedTable : function(){ + return this.lockedBody.dom.firstChild; + }, - getBodyTable : function(){ - return this.mainBody.dom.firstChild; - }, + getBodyTable : function(){ + return this.mainBody.dom.firstChild; + }, - getLockedRow : function(index){ - return this.getLockedTable().rows[index]; - }, + getLockedRow : function(index){ + return this.getLockedTable().rows[index]; + }, - getRow : function(index){ - return this.getBodyTable().rows[index]; - }, + getRow : function(index){ + return this.getBodyTable().rows[index]; + }, - getRowComposite : function(index){ - if(!this.rowEl){ - this.rowEl = new Roo.CompositeElementLite(); - } + getRowComposite : function(index){ + if(!this.rowEl){ + this.rowEl = new Roo.CompositeElementLite(); + } var els = [], lrow, mrow; if(lrow = this.getLockedRow(index)){ els.push(lrow); @@ -33129,27 +33129,27 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { els.push(mrow); } this.rowEl.elements = els; - return this.rowEl; - }, + return this.rowEl; + }, - getCell : function(rowIndex, colIndex){ - var locked = this.cm.getLockedCount(); - var source; - if(colIndex < locked){ - source = this.lockedBody.dom.firstChild; - }else{ - source = this.mainBody.dom.firstChild; - colIndex -= locked; - } + getCell : function(rowIndex, colIndex){ + var locked = this.cm.getLockedCount(); + var source; + if(colIndex < locked){ + source = this.lockedBody.dom.firstChild; + }else{ + source = this.mainBody.dom.firstChild; + colIndex -= locked; + } return source.rows[rowIndex].childNodes[colIndex]; - }, + }, - getCellText : function(rowIndex, colIndex){ - return this.getCell(rowIndex, colIndex).firstChild.firstChild; - }, + getCellText : function(rowIndex, colIndex){ + return this.getCell(rowIndex, colIndex).firstChild.firstChild; + }, - getCellBox : function(cell){ - var b = this.fly(cell).getBox(); + getCellBox : function(cell){ + var b = this.fly(cell).getBox(); if(Roo.isOpera){ // opera fails to report the Y b.y = cell.offsetTop + this.mainBody.getY(); } @@ -33194,21 +33194,21 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { }, getColumnId : function(index){ - return this.cm.getColumnId(index); - }, + return this.cm.getColumnId(index); + }, getSplitters : function() { - if(this.splitterSelector){ - return Roo.DomQuery.select(this.splitterSelector); - }else{ - return null; - } - }, + if(this.splitterSelector){ + return Roo.DomQuery.select(this.splitterSelector); + }else{ + return null; + } + }, - getSplitter : function(index){ - return this.getSplitters()[index]; - }, + getSplitter : function(index){ + return this.getSplitters()[index]; + }, onRowOver : function(e, t){ var row; @@ -33225,7 +33225,7 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { }, renderHeaders : function(){ - var cm = this.cm; + var cm = this.cm; var ct = this.templates.hcell, ht = this.templates.header, st = this.templates.hsplit; var cb = [], lb = [], sb = [], lsb = [], p = {}; for(var i = 0, len = cm.getColumnCount(); i < len; i++){ @@ -33245,9 +33245,9 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { } return [ht.apply({cells: lb.join(""), splits:lsb.join("")}), ht.apply({cells: cb.join(""), splits:sb.join("")})]; - }, + }, - updateHeaders : function(){ + updateHeaders : function(){ var html = this.renderHeaders(); this.lockedHd.update(html[0]); this.mainHd.update(html[1]); @@ -33316,7 +33316,7 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { var sright = sleft + c.clientWidth; if(ctop < stop){ - c.scrollTop = ctop; + c.scrollTop = ctop; }else if(cbot > sbot){ c.scrollTop = cbot-ch; } @@ -33897,10 +33897,10 @@ Roo.extend(Roo.grid.GridView, Roo.grid.AbstractGridView, { return; } var dm = g.dataSource, cm = g.colModel; - if(!cm.isSortable(index)){ + if(!cm.isSortable(index)){ return; } - g.stopEditing(); + g.stopEditing(); dm.sort(cm.getDataIndex(index)); }, -- 2.39.2