From d9ae654c16a96cb94b366a2ab9ed396f16bd5568 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 14 Jul 2014 19:09:45 +0800 Subject: [PATCH] 1004150 Process modal dialog: no scrollbar when content overflow. --- .../src/org/adempiere/webui/apps/ProcessModalDialog.java | 1 + .../src/org/adempiere/webui/apps/ProcessParameterPanel.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java index d6fb4c02af..1481119c83 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java @@ -169,6 +169,7 @@ public class ProcessModalDialog extends Window implements EventListener, dialogContent.setHflex("1"); dialogContent.setVflex("1"); dialogContent.setSclass("dialog-content"); + dialogContent.setStyle("overflow-y: auto;"); dialogBody.appendChild(dialogContent); Div div = new Div(); div.setId("message"); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java index f35e59bffd..7932634e02 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java @@ -731,6 +731,9 @@ public class ProcessParameterPanel extends Panel implements editor.setMandatory(mField.isMandatory(true)); editor.updateLabelStyle(); } + if (getParent() != null) { + getParent().invalidate(); + } } /**