diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java index a75d7b104a..c597c7590a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java @@ -392,7 +392,7 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt colIndex ++; Div div = new Div(); - String divStyle = "border: none; width: 100%; height: 100%; cursor: pointer;"; + String divStyle = "border: none; height: 100%; cursor: pointer;"; org.zkoss.zul.Column column = (org.zkoss.zul.Column) columns.getChildren().get(colIndex); if (column.isVisible()) { Component component = getDisplayComponent(rowIndex, currentValues[i], gridPanelFields[i]); @@ -407,6 +407,8 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt } } div.setStyle(divStyle); + div.setWidth(column.getWidth()); + div.setHflex("1"); div.setAttribute("columnName", gridPanelFields[i].getColumnName()); div.addEventListener(Events.ON_CLICK, rowListener); div.addEventListener(Events.ON_DOUBLE_CLICK, rowListener);