X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/EditorGrid.html diff --git a/docs/source/EditorGrid.html b/docs/source/EditorGrid.html index 8972b7aa..2622eec9 100644 --- a/docs/source/EditorGrid.html +++ b/docs/source/EditorGrid.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.grid.EditorGridPanel * @extends Ext.grid.GridPanel *

This class extends the {@link Ext.grid.GridPanel GridPanel Class} to provide cell editing @@ -171,6 +166,14 @@ grid.on('validateedit', function(e) { this.on('celldblclick', this.onCellDblClick, this); } }, + + onResize : function(){ + Ext.grid.EditorGridPanel.superclass.onResize.apply(this, arguments); + var ae = this.activeEditor; + if(this.editing && ae){ + ae.realign(true); + } + }, // private onCellDblClick : function(g, row, col){ @@ -182,8 +185,8 @@ grid.on('validateedit', function(e) { if(e.button !== 0){ return; } - var row = this.view.findRowIndex(t); - var col = this.view.findCellIndex(t); + var row = this.view.findRowIndex(t), + col = this.view.findCellIndex(t); if(row !== false && col !== false){ this.stopEditing(); if(this.selModel.getSelectedCell){ // cell sm @@ -204,8 +207,8 @@ grid.on('validateedit', function(e) { this.editing = false; this.activeEditor = null; - var r = ed.record; - var field = this.colModel.getDataIndex(ed.col); + var r = ed.record, + field = this.colModel.getDataIndex(ed.col); value = this.postEditValue(value, startValue, r, field); if(this.forceValidation === true || String(value) !== String(startValue)){ var e = { @@ -236,17 +239,17 @@ grid.on('validateedit', function(e) { this.stopEditing(); if(this.colModel.isCellEditable(col, row)){ this.view.ensureVisible(row, col, true); - var r = this.store.getAt(row); - var field = this.colModel.getDataIndex(col); - var e = { - grid: this, - record: r, - field: field, - value: r.data[field], - row: row, - column: col, - cancel:false - }; + var r = this.store.getAt(row), + field = this.colModel.getDataIndex(col), + e = { + grid: this, + record: r, + field: field, + value: r.data[field], + row: row, + column: col, + cancel:false + }; if(this.fireEvent("beforeedit", e) !== false && !e.cancel){ this.editing = true; var ed = this.colModel.getCellEditor(col, row); @@ -314,6 +317,6 @@ grid.on('validateedit', function(e) { this.editing = false; } }); -Ext.reg('editorgrid', Ext.grid.EditorGridPanel);

- +Ext.reg('editorgrid', Ext.grid.EditorGridPanel);
+ \ No newline at end of file