From a4527128a9e089a301bef2ff2cc30c946acaa4b5 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 2 Mar 2012 15:16:38 +0800 Subject: [PATCH] Use simpler means to highlight current row of grid. Fixed sizing of editor component sometimes not correct using inplace edit. --- .../org/adempiere/webui/component/GridTabRowRenderer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java index fe17434cfa..bef4d72b34 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java @@ -68,7 +68,7 @@ import org.zkoss.zhtml.Text; */ public class GridTabRowRenderer implements RowRenderer, RowRendererExt, RendererCtrl { - private static final String CURRENT_ROW_STYLE = "border-top: 2px solid #6f97d2; border-bottom: 2px solid #6f97d2"; + private static final String CURRENT_ROW_STYLE = "background-color: #BDEDFF"; private static final int MAX_TEXT_LENGTH = 60; private GridTab gridTab; private int windowNo; @@ -478,6 +478,7 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt, Renderer org.zkoss.zul.Column column = (org.zkoss.zul.Column) columns.getChildren().get(colIndex); if (column.isVisible()) { Div div = (Div) currentRow.getChildren().get(colIndex); + div.getFirstChild().setVisible(false); WEditor editor = getEditorCell(gridField[i], currentValues[i], i); div.appendChild(editor.getComponent()); WEditorPopupMenu popupMenu = editor.getPopupMenu(); @@ -487,7 +488,7 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt, Renderer popupMenu.addMenuListener((ContextMenuListener)editor); div.appendChild(popupMenu); } - div.getFirstChild().setVisible(false); + //check context if (!gridField[i].isDisplayed(true)) {