From 84e417a527e97c66192934a5540d3b727c2eded2 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 19 Apr 2012 11:09:21 +0800 Subject: [PATCH] minor improvement to menu search layout. --- .../WEB-INF/src/org/adempiere/webui/panel/MenuPanel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuPanel.java index 37ffd5743a..820e13cc52 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuPanel.java @@ -42,6 +42,7 @@ import org.zkoss.zk.ui.util.Clients; import org.zkoss.zul.A; import org.zkoss.zul.Panel; import org.zkoss.zul.Panelchildren; +import org.zkoss.zul.Style; import org.zkoss.zul.Toolbar; import org.zkoss.zul.Tree; import org.zkoss.zul.Treecell; @@ -104,8 +105,11 @@ public class MenuPanel extends Panel implements EventListener menuTree.setPageSize(-1); // Due to bug in the new paging functionality menuTree.setStyle("border: none"); - + pnlSearch = new TreeSearchPanel(menuTree); + Style style = new Style(); + style.setContent(".z-comboitem-img{ vertical-align:top; padding-right:2px; padding-bottom:4px; }"); + pnlSearch.insertBefore(style, pnlSearch.getFirstChild()); Toolbar toolbar = new Toolbar(); toolbar.setMold("panel");