IDEMPIERE-405 Zk: Replace hardcoded style with css class.

This commit is contained in:
Heng Sin Low 2013-02-18 12:04:11 +08:00
parent bbbb4eb4c2
commit a04d56b8b8
2 changed files with 12 additions and 2 deletions

View File

@ -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);

View File

@ -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%;