IDEMPIERE-512 Fix similar positioning problem in other forms

This commit is contained in:
Richard Morales 2013-02-07 11:57:17 -05:00
parent 4356fa8f64
commit a2080d5d84
4 changed files with 73 additions and 57 deletions

View File

@ -183,30 +183,33 @@ public class WAllocation extends Allocation
Rows rows = null; Rows rows = null;
Row row = null; Row row = null;
parameterLayout.setWidth("800px"); parameterLayout.setWidth("80%");
rows = parameterLayout.newRows(); rows = parameterLayout.newRows();
row = rows.newRow(); row = rows.newRow();
row.appendChild(bpartnerLabel.rightAlign()); row.appendCellChild(bpartnerLabel.rightAlign());
row.appendChild(bpartnerSearch.getComponent()); bpartnerSearch.getComponent().setHflex("true");
row.appendChild(dateLabel.rightAlign()); row.appendCellChild(bpartnerSearch.getComponent(),1);
row.appendChild(dateField.getComponent()); row.appendCellChild(dateLabel.rightAlign());
row.appendChild(organizationLabel.rightAlign()); row.appendCellChild(dateField.getComponent());
row.appendChild(organizationPick.getComponent()); row.appendCellChild(organizationLabel.rightAlign());
organizationPick.getComponent().setHflex("true");
row.appendCellChild(organizationPick.getComponent(),1);
row = rows.newRow(); row = rows.newRow();
row.appendCellChild(currencyLabel.rightAlign(),1); row.appendCellChild(currencyLabel.rightAlign(),1);
currencyPick.getComponent().setHflex("true");
row.appendCellChild(currencyPick.getComponent(),1); row.appendCellChild(currencyPick.getComponent(),1);
row.appendCellChild(multiCurrency,2); row.appendCellChild(multiCurrency,2);
row.appendCellChild(new Space(),1); row.appendCellChild(new Space(),1);
row.appendCellChild(new Space(),1); row.appendCellChild(new Space(),1);
row = rows.newRow(); row = rows.newRow();
row.appendChild(new Space()); row.appendCellChild(new Space());
row.appendChild(autoWriteOff); row.appendCellChild(autoWriteOff);
row.appendChild(new Space()); row.appendCellChild(new Space());
row.appendChild(new Space()); row.appendCellChild(new Space());
row.appendChild(new Space()); row.appendCellChild(new Space());
row.appendChild(new Space()); row.appendCellChild(new Space());
South south = new South(); South south = new South();
south.setStyle("border: none"); south.setStyle("border: none");
@ -217,14 +220,15 @@ public class WAllocation extends Allocation
allocationLayout.setWidth("600px"); allocationLayout.setWidth("600px");
rows = allocationLayout.newRows(); rows = allocationLayout.newRows();
row = rows.newRow(); row = rows.newRow();
row.appendChild(differenceLabel.rightAlign()); row.appendCellChild(differenceLabel.rightAlign());
row.appendChild(allocCurrencyLabel.rightAlign()); row.appendCellChild(allocCurrencyLabel.rightAlign());
row.appendChild(differenceField); differenceField.setHflex("true");
row.appendChild(new Space()); row.appendCellChild(differenceField);
row.appendChild(chargeLabel.rightAlign()); row.appendCellChild(chargeLabel.rightAlign());
row.appendChild(chargePick.getComponent()); chargePick.getComponent().setHflex("true");
row.appendChild(new Space()); row.appendCellChild(chargePick.getComponent(),2);
row.appendChild(allocateButton); allocateButton.setHflex("true");
row.appendCellChild(allocateButton);
paymentPanel.appendChild(paymentLayout); paymentPanel.appendChild(paymentLayout);
paymentPanel.setWidth("100%"); paymentPanel.setWidth("100%");

View File

@ -99,21 +99,25 @@ public class WInOutGen extends InOutGen implements IFormController, EventListene
lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID")); lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
Row row = form.getParameterPanel().newRows().newRow(); Row row = form.getParameterPanel().newRows().newRow();
row.appendChild(lWarehouse.rightAlign()); row.appendCellChild(lWarehouse.rightAlign());
row.appendChild(fWarehouse.getComponent()); fWarehouse.getComponent().setHflex("true");
row.appendChild(new Space()); row.appendCellChild(fWarehouse.getComponent());
row.appendChild(lBPartner.rightAlign()); row.appendCellChild(new Space());
row.appendChild(fBPartner.getComponent()); row.appendCellChild(lBPartner.rightAlign());
row.appendChild(new Space()); fBPartner.getComponent().setHflex("true");
row.appendCellChild(fBPartner.getComponent());
row.appendCellChild(new Space());
row = new Row(); row = new Row();
form.getParameterPanel().getRows().appendChild(row); form.getParameterPanel().getRows().appendChild(row);
row.appendChild(lDocType.rightAlign()); row.appendCellChild(lDocType.rightAlign());
row.appendChild(cmbDocType); cmbDocType.setHflex("true");
row.appendChild(new Space()); row.appendCellChild(cmbDocType);
row.appendChild(lDocAction.rightAlign()); row.appendCellChild(new Space());
row.appendChild(docAction.getComponent()); row.appendCellChild(lDocAction.rightAlign());
row.appendChild(new Space()); docAction.getComponent().setHflex("true");
row.appendCellChild(docAction.getComponent());
row.appendCellChild(new Space());
} // jbInit } // jbInit
/** /**

View File

@ -99,21 +99,25 @@ public class WInvoiceGen extends InvoiceGen implements IFormController, EventLis
lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID")); lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
Row row = form.getParameterPanel().newRows().newRow(); Row row = form.getParameterPanel().newRows().newRow();
row.appendChild(lOrg.rightAlign()); row.appendCellChild(lOrg.rightAlign());
row.appendChild(fOrg.getComponent()); fOrg.getComponent().setHflex("true");
row.appendChild(new Space()); row.appendCellChild(fOrg.getComponent());
row.appendChild(lBPartner.rightAlign()); row.appendCellChild(new Space());
row.appendChild(fBPartner.getComponent()); row.appendCellChild(lBPartner.rightAlign());
row.appendChild(new Space()); fBPartner.getComponent().setHflex("true");
row.appendCellChild(fBPartner.getComponent());
row.appendCellChild(new Space());
row = new Row(); row = new Row();
form.getParameterPanel().getRows().appendChild(row); form.getParameterPanel().getRows().appendChild(row);
row.appendChild(lDocType.rightAlign()); row.appendCellChild(lDocType.rightAlign());
row.appendChild(cmbDocType); cmbDocType.setHflex("true");
row.appendChild(new Space()); row.appendCellChild(cmbDocType);
row.appendChild(lDocAction.rightAlign()); row.appendCellChild(new Space());
row.appendChild(docAction.getComponent()); row.appendCellChild(lDocAction.rightAlign());
row.appendChild(new Space()); docAction.getComponent().setHflex("true");
row.appendCellChild(docAction.getComponent());
row.appendCellChild(new Space());
} // jbInit } // jbInit
/** /**

View File

@ -142,20 +142,24 @@ public class WTrxMaterial extends TrxMaterial
Rows rows = parameterLayout.newRows(); Rows rows = parameterLayout.newRows();
Row row = rows.newRow(); Row row = rows.newRow();
row.appendChild(orgLabel.rightAlign()); row.appendCellChild(orgLabel.rightAlign());
row.appendChild(orgField.getComponent()); orgField.getComponent().setHflex("true");
row.appendChild(mtypeLabel.rightAlign()); row.appendCellChild(orgField.getComponent());
row.appendChild(mtypeField.getComponent()); row.appendCellChild(mtypeLabel.rightAlign());
row.appendChild(dateFLabel.rightAlign()); mtypeField.getComponent().setHflex("true");
row.appendChild(dateFField.getComponent()); row.appendCellChild(mtypeField.getComponent());
row.appendCellChild(dateFLabel.rightAlign());
row.appendCellChild(dateFField.getComponent());
row = rows.newRow(); row = rows.newRow();
row.appendChild(locatorLabel.rightAlign()); row.appendCellChild(locatorLabel.rightAlign());
row.appendChild(locatorField.getComponent()); locatorField.getComponent().setHflex("true");
row.appendChild(productLabel.rightAlign()); row.appendCellChild(locatorField.getComponent());
row.appendChild(productField.getComponent()); row.appendCellChild(productLabel.rightAlign());
row.appendChild(dateTLabel.rightAlign()); productField.getComponent().setHflex("true");
row.appendChild(dateTField.getComponent()); row.appendCellChild(productField.getComponent());
row.appendCellChild(dateTLabel.rightAlign());
row.appendCellChild(dateTField.getComponent());
// //
southPanel.appendChild(confirmPanel); southPanel.appendChild(confirmPanel);
southPanel.appendChild(new Separator()); southPanel.appendChild(new Separator());