From e98c9d5a510fe4ab9ed4d64baa20b47e36bf741b Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 27 Mar 2009 06:45:08 +0000 Subject: [PATCH] [ adempiere-ZK Web Client-2716384 ] column editor misplace in grid view --- .../org/adempiere/webui/component/GridTabRowRenderer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java b/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java index b1d8f96a32..cab362d4dd 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java @@ -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);