[ adempiere-ZK Web Client-2716384 ] column editor misplace in grid view

This commit is contained in:
Heng Sin Low 2009-03-27 06:45:08 +00:00
parent 9d1cfc5ca6
commit e98c9d5a51
1 changed files with 6 additions and 1 deletions

View File

@ -429,12 +429,17 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt, Renderer
org.zkoss.zul.Columns columns = grid.getColumns();
int colIndex = -1;
for (int i = 0; i < columnCount; i++) {
if (!gridField[i].isDisplayed()) {
continue;
}
colIndex ++;
//check context
if (!gridField[i].isDisplayed(true)) {
continue;
}
if (editors.get(gridField[i]) == null)
editors.put(gridField[i], WebEditorFactory.getEditor(gridField[i], true));
colIndex ++;
org.zkoss.zul.Column column = (org.zkoss.zul.Column) columns.getChildren().get(colIndex);
if (column.isVisible() && gridField[i].isEditable(true)) {
Div div = (Div) currentRow.getChildren().get(colIndex);