From 454626ee382ccac218beab4cc883b9b88b53b806 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 3 May 2012 12:19:06 +0800 Subject: [PATCH] Fixed minor layout problem. (transplanted from 915a1da671442fc6468125962cc001fa247f64e8) --- .../WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java | 3 +-- .../WEB-INF/src/org/adempiere/webui/panel/ADTabpanel.java | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java index dc9e748e59..2cb3139c58 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java @@ -147,7 +147,6 @@ public class ProcessDialog extends Window implements EventListener, IProc center.setStyle("border: none"); Div div = new Div(); - div.setStyle("text-align: center"); Hbox hbox = new Hbox(); String label = Msg.getMsg(Env.getCtx(), "Start"); bOK = new Button(label.replaceAll("&", "")); @@ -165,7 +164,7 @@ public class ProcessDialog extends Window implements EventListener, IProc btn.setSclass("action-image-text-button"); hbox.appendChild(btn); div.appendChild(hbox); - div.setStyle("padding: 10px"); + div.setStyle("padding: 10px; text-align: center; text-align: -webkit-center; text-align: -moz-center; "); South south = new South(); layout.appendChild(south); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ADTabpanel.java index 6d9f260375..53126fb22a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ADTabpanel.java @@ -168,7 +168,7 @@ DataStatusListener, IADTabpanel, VetoableChangeListener grid = new Grid(); //have problem moving the following out as css class - grid.setWidth("100%"); + grid.setHflex("1"); grid.setHeight("100%"); grid.setVflex(true); grid.setStyle("margin:0; padding:0; position: absolute"); @@ -1042,6 +1042,7 @@ DataStatusListener, IADTabpanel, VetoableChangeListener { activateChild(true, ep); } + formComponent.getParent().invalidate(); } listPanel.setVisible(!formComponent.isVisible()); if (listPanel.isVisible()) {