From 09bdb590242e670f11e91b2b3e8901b22c22d04f Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 20 Oct 2017 18:24:09 +0800 Subject: [PATCH] IDEMPIERE-3518 Improvement For Mobile Compatibility. Process Dialog: fix notification type field and range field. --- .../adempiere/webui/apps/AbstractProcessDialog.java | 3 ++- .../adempiere/webui/apps/ProcessParameterPanel.java | 2 ++ .../default/css/fragment/parameter-process.css.dsp | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java index 36ee50297e..eed77aa483 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java @@ -375,7 +375,8 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI row.appendChild(notificationTypeField.getComponent()); runAsJobField.setChecked(MSysConfig.getBooleanValue(MSysConfig.BACKGROUND_JOB_BY_DEFAULT, false)); - notificationTypeField.getComponent().getParent().setVisible(runAsJobField.isChecked()); + notificationTypeField.getComponent().getParent().setVisible(runAsJobField.isChecked()); + notificationTypeField.fillHorizontal(); } } 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 f5da8c2809..5b9505e7b1 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 @@ -328,7 +328,9 @@ public class ProcessParameterPanel extends Panel implements // if (voF.isRange) { Hbox box = new Hbox(); + ZKUpdateUtil.setHflex(box, "1"); box.appendChild(editor.getComponent()); + editor.fillHorizontal(); // GridFieldVO voF2 = GridFieldVO.createParameter(voF); GridField mField2 = new GridField(voF2); diff --git a/org.adempiere.ui.zk/theme/default/css/fragment/parameter-process.css.dsp b/org.adempiere.ui.zk/theme/default/css/fragment/parameter-process.css.dsp index a68aa43625..54ff92e768 100644 --- a/org.adempiere.ui.zk/theme/default/css/fragment/parameter-process.css.dsp +++ b/org.adempiere.ui.zk/theme/default/css/fragment/parameter-process.css.dsp @@ -69,6 +69,16 @@ when detect side effect, fix to only apply for parameter window*/ .input-paramenter-layout{ width: 70%; } +@media screen and (max-width: 700px) { + .input-paramenter-layout{ + width: 90%; + } +} +@media screen and (max-width: 500px) { + .input-paramenter-layout{ + width: 100%; + } +} .popup-dialog .input-paramenter-layout{ width: 90%;