From a04d56b8b8ace2bb2384a8a12bf85c753d313940 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 18 Feb 2013 12:04:11 +0800 Subject: [PATCH] IDEMPIERE-405 Zk: Replace hardcoded style with css class. --- .../src/org/adempiere/webui/adwindow/ADTabpanel.java | 4 ++-- org.adempiere.ui.zk/theme/default/css/theme.css.dsp | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java index 896cf3a4c8..88a3109ab9 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java @@ -509,7 +509,7 @@ DataStatusListener, IADTabpanel, IdSpace editorComps.add(editor.getComponent()); if (paintLabel) { Div div = new Div(); - div.setStyle("text-align: right;"); + div.setSclass("form-label"); Label label = editor.getLabel(); div.appendChild(label); if (label.getDecorator() != null) @@ -566,7 +566,7 @@ DataStatusListener, IADTabpanel, IdSpace //display just a label if we are "heading only" Label label = new Label(field.getHeader()); Div div = new Div(); - div.setStyle("text-align: center;"); + div.setSclass("form-label-heading"); row.appendCellChild(createSpacer()); div.appendChild(label); row.appendCellChild(div); diff --git a/org.adempiere.ui.zk/theme/default/css/theme.css.dsp b/org.adempiere.ui.zk/theme/default/css/theme.css.dsp index 7e3a33dd1a..669bb0aa7c 100644 --- a/org.adempiere.ui.zk/theme/default/css/theme.css.dsp +++ b/org.adempiere.ui.zk/theme/default/css/theme.css.dsp @@ -662,6 +662,16 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none { background-image: none !important; } +.form-label +{ + text-align: right; +} + +.form-label-heading +{ + text-align: center; +} + <%-- status bar --%> .status { width: 100%;