IDEMPIERE-182 Zk6: Fixed alignment of confirmation panel.

This commit is contained in:
Heng Sin Low 2012-03-14 10:36:39 +08:00
parent 9c5999e716
commit 6b8247ca1c
4 changed files with 18 additions and 7 deletions

View File

@ -155,7 +155,7 @@ public class ProcessDialog extends Window implements EventListener, IProcessMoni
bOK.setImage("/images/Ok16.png");
bOK.setId("Ok");
bOK.addEventListener(Events.ON_CLICK, this);
bOK.setSclass("action-button");
bOK.setSclass("action-image-text-button");
hbox.appendChild(bOK);
label = Msg.getMsg(Env.getCtx(), "Cancel");
@ -163,7 +163,7 @@ public class ProcessDialog extends Window implements EventListener, IProcessMoni
btn.setImage("/images/Cancel16.png");
btn.setId("Cancel");
btn.addEventListener(Events.ON_CLICK, this);
btn.setSclass("action-button");
btn.setSclass("action-image-text-button");
hbox.appendChild(btn);
div.appendChild(hbox);
div.setStyle("padding: 10px");

View File

@ -229,20 +229,24 @@ public final class ConfirmPanel extends Hbox
private void init()
{
pnlBtnLeft = new Panel();
pnlBtnLeft.setAlign("left");
pnlBtnLeft.setStyle("text-align:left");
pnlBtnRight = new Panel();
pnlBtnRight.setAlign("right");
pnlBtnRight.setStyle("text-align:right");
hboxBtnRight = new Hbox();
hboxBtnRight.appendChild(pnlBtnRight);
hboxBtnRight.setWidth("100%");
hboxBtnRight.setStyle("text-align:right");
// hboxBtnRight.setStyle("text-align:right");
hboxBtnRight.setPack("end");
hboxBtnRight.setHflex("1");
hboxBtnLeft = new Hbox();
hboxBtnLeft.appendChild(pnlBtnLeft);
hboxBtnLeft.setWidth("100%");
hboxBtnLeft.setStyle("text-align:left");
// hboxBtnLeft.setStyle("text-align:left");
hboxBtnLeft.setPack("start");
hboxBtnLeft.setHflex("1");
this.appendChild(hboxBtnLeft);
this.appendChild(hboxBtnRight);

View File

@ -282,11 +282,13 @@ public class FindWindow extends Window implements EventListener,ValueChangeListe
Panel pnlButtonRight = new Panel();
pnlButtonRight.appendChild(btnOk);
pnlButtonRight.appendChild(btnCancel);
pnlButtonRight.setAlign("right");
pnlButtonRight.setStyle("text-align:right");
pnlButtonRight.setWidth("100%");
pnlButtonRight.setHflex("1");
Panel pnlButtonLeft = new Panel();
pnlButtonLeft.appendChild(btnNew);
pnlButtonLeft.setHflex("1");
Hbox hboxButton = new Hbox();
hboxButton.appendChild(pnlButtonLeft);

View File

@ -162,6 +162,11 @@ html,body {
width: 80px;
}
.action-image-text-button {
height: 32px;
width: 80px;
}
.editor-button {
width: 26px;
padding: 0px;