IDEMPIERE-4252 Remove usage of vflex/height + rows.
This commit is contained in:
parent
43c8485b76
commit
7fc71f8e9e
|
@ -146,7 +146,6 @@ public class FeedbackRequestWindow extends Window implements EventListener<Event
|
|||
txtSummary = new Textbox();
|
||||
txtSummary.setRows(10);
|
||||
ZKUpdateUtil.setWidth(txtSummary, "95%");
|
||||
ZKUpdateUtil.setHeight(txtSummary, "100%");
|
||||
|
||||
confirmPanel = new ConfirmPanel(true);
|
||||
confirmPanel.addActionListener(this);
|
||||
|
|
|
@ -180,7 +180,6 @@ public class CompareFieldSuggestion extends ADForm {
|
|||
descriptionTextbox.addEventListener(Events.ON_CHANGING, this);
|
||||
descriptionTextbox.setMaxlength(255);
|
||||
descriptionTextbox.setMultiline(true);
|
||||
descriptionTextbox.setHeight("100%");
|
||||
descriptionTextbox.setHflex("1");
|
||||
|
||||
html = diff(original, changed);
|
||||
|
@ -201,7 +200,6 @@ public class CompareFieldSuggestion extends ADForm {
|
|||
helpTextbox.addEventListener(Events.ON_CHANGING, this);
|
||||
helpTextbox.setMaxlength(2000);
|
||||
helpTextbox.setMultiline(true);
|
||||
helpTextbox.setHeight("100%");
|
||||
helpTextbox.setHflex("1");
|
||||
|
||||
html = diff(original, changed);
|
||||
|
|
|
@ -487,7 +487,6 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.appendCellChild(descriptionField, 3);
|
||||
descriptionField.setRows(3);
|
||||
ZKUpdateUtil.setHeight(descriptionField, "100%");
|
||||
ZKUpdateUtil.setHflex(descriptionField, "1");
|
||||
|
||||
row = new Row();
|
||||
|
@ -499,7 +498,6 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.appendCellChild(helpField, 3);
|
||||
helpField.setRows(3);
|
||||
ZKUpdateUtil.setHeight(helpField, "100%");
|
||||
ZKUpdateUtil.setHflex(helpField, "1");
|
||||
|
||||
row = new Row();
|
||||
|
|
|
@ -214,7 +214,6 @@ public class WFileImport extends ADForm implements EventListener<Event>
|
|||
|
||||
ZKUpdateUtil.setHflex(rawData, "1");
|
||||
rawData.setRows(MAX_SHOWN_LINES);
|
||||
ZKUpdateUtil.setHeight(rawData, "100%");
|
||||
|
||||
ZKUpdateUtil.setHflex(northPanel, "1");
|
||||
ZKUpdateUtil.setVflex(northPanel, "0");
|
||||
|
|
|
@ -106,7 +106,6 @@ public class WSQLProcess extends ADForm implements EventListener<Event>
|
|||
m_txbSqlField.setMultiline(true);
|
||||
m_txbSqlField.setMaxlength(maxStatementLength);
|
||||
m_txbSqlField.setRows(noStatementRows);
|
||||
ZKUpdateUtil.setHeight(m_txbSqlField, "100%");
|
||||
ZKUpdateUtil.setHflex(m_txbSqlField, "1");
|
||||
m_txbSqlField.setCols(noColumns);
|
||||
m_txbSqlField.setReadonly(false);
|
||||
|
@ -122,7 +121,6 @@ public class WSQLProcess extends ADForm implements EventListener<Event>
|
|||
// create the bottom row of components
|
||||
m_txbResultField.setCols(noColumns);
|
||||
m_txbResultField.setRows(noResultRows);
|
||||
ZKUpdateUtil.setHeight(m_txbResultField, "100%");
|
||||
ZKUpdateUtil.setHflex(m_txbResultField, "1");
|
||||
m_txbResultField.setReadonly(true);
|
||||
|
||||
|
|
|
@ -458,7 +458,6 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
|
|||
|
||||
divNote.appendChild(notesField);
|
||||
notesField.setRows(4);
|
||||
ZKUpdateUtil.setHeight(notesField, "100%");
|
||||
ZKUpdateUtil.setWidth(notesField, "99%");
|
||||
|
||||
MLookup lookup = MLookupFactory.get(Env.getCtx(), form.getWindowNo(),
|
||||
|
|
|
@ -197,7 +197,6 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
fHelp.setMultiline(true);
|
||||
fHelp.setRows(3);
|
||||
ZKUpdateUtil.setWidth(fHelp, "100%");
|
||||
ZKUpdateUtil.setHeight(fHelp, "100%");
|
||||
ZKUpdateUtil.setHflex(fHelp, "true");
|
||||
fHelp.setReadonly(true);
|
||||
row.appendChild(new Label());
|
||||
|
|
|
@ -82,7 +82,6 @@ public class EventWindow extends Window implements EventListener<Event> {
|
|||
txtContent = new Textbox();
|
||||
txtContent.setRows(5);
|
||||
ZKUpdateUtil.setWidth(txtContent, "95%");
|
||||
ZKUpdateUtil.setHeight(txtContent, "100%");
|
||||
txtContent.setReadonly(true);
|
||||
|
||||
txtHeaderColor = new Textbox();
|
||||
|
|
|
@ -169,7 +169,6 @@ public class RequestWindow extends Window implements EventListener<Event> {
|
|||
txtSummary = new Textbox();
|
||||
txtSummary.setRows(3);
|
||||
ZKUpdateUtil.setWidth(txtSummary, "95%");
|
||||
ZKUpdateUtil.setHeight(txtSummary, "100%");
|
||||
|
||||
dbxStartPlan = new Datebox();
|
||||
dbxCompletePlan = new Datebox();
|
||||
|
|
|
@ -148,8 +148,6 @@ public class WStringEditor extends WEditor implements ContextMenuListener
|
|||
getComponent().setMultiline(false);
|
||||
if (! gridField.isAutocomplete()) // avoid -> Combobox doesn't support multiple rows
|
||||
getComponent().setRows(gridField.getNumLines() <= 0 || tableEditor ? 1 : gridField.getNumLines());
|
||||
if (getComponent().getRows() > 1)
|
||||
ZKUpdateUtil.setHeight(getComponent(), "100%");
|
||||
|
||||
if (getComponent() instanceof Textbox)
|
||||
((Textbox)getComponent()).setObscureType(obscureType);
|
||||
|
|
|
@ -272,7 +272,6 @@ public class WAttachment extends Window implements EventListener<Event>
|
|||
div.appendChild(toolBar);
|
||||
text.setRows(3);
|
||||
ZKUpdateUtil.setHflex(text, "1");
|
||||
ZKUpdateUtil.setHeight(text, "100%");
|
||||
|
||||
div.appendChild(text);
|
||||
northPanel.appendChild(div);
|
||||
|
|
|
@ -206,7 +206,6 @@ public class WAssignmentDialog extends Window implements EventListener<Event>
|
|||
fDescription.setMultiline(true);
|
||||
fDescription.setRows(3);
|
||||
ZKUpdateUtil.setWidth(fDescription, "100%");
|
||||
ZKUpdateUtil.setHeight(fDescription, "100%");
|
||||
rows.appendChild(row);
|
||||
|
||||
row = new Row();
|
||||
|
|
|
@ -161,7 +161,6 @@ public class WChat extends Window implements EventListener<Event>, DialogEvents
|
|||
//
|
||||
content.appendChild(newText);
|
||||
newText.setRows(3);
|
||||
ZKUpdateUtil.setHeight(newText, "100%");
|
||||
newText.setMultiline(true);
|
||||
ZKUpdateUtil.setHflex(newText, "1");
|
||||
ZKUpdateUtil.setVflex(newText, "min");
|
||||
|
@ -359,7 +358,6 @@ public class WChat extends Window implements EventListener<Event>, DialogEvents
|
|||
replyTextbox.setMultiline(true);
|
||||
replyTextbox.setRows(3);
|
||||
ZKUpdateUtil.setWidth(replyTextbox, "100%");
|
||||
ZKUpdateUtil.setHeight(replyTextbox, "100%");
|
||||
div.appendChild(replyTextbox);
|
||||
Button btn = new Button(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Ok")));
|
||||
div.appendChild(btn);
|
||||
|
|
|
@ -94,7 +94,6 @@ public class WFieldSuggestion extends Window implements EventListener<Event> {
|
|||
row.appendCellChild(new Label(Msg.getElement(Env.getCtx(), "Description")));
|
||||
descriptionTextbox = new Textbox(field.get_Translation("Description"));
|
||||
descriptionTextbox.setRows(4);
|
||||
descriptionTextbox.setHeight("100%");
|
||||
descriptionTextbox.setMaxlength(255);
|
||||
descriptionTextbox.setHflex("1");
|
||||
descriptionTextbox.setMultiline(true);
|
||||
|
@ -104,7 +103,6 @@ public class WFieldSuggestion extends Window implements EventListener<Event> {
|
|||
row.appendCellChild(new Label(Msg.getElement(Env.getCtx(), "Help")));
|
||||
helpTextbox = new Textbox(field.get_Translation("Help"));
|
||||
helpTextbox.setRows(8);
|
||||
helpTextbox.setHeight("100%");
|
||||
helpTextbox.setMultiline(true);
|
||||
helpTextbox.setMaxlength(2000);
|
||||
helpTextbox.setHflex("1");
|
||||
|
|
|
@ -313,7 +313,6 @@ public class WLocationDialog extends Window implements EventListener<Event>
|
|||
txtResult = new Textbox();
|
||||
txtResult.setCols(2);
|
||||
txtResult.setRows(3);
|
||||
ZKUpdateUtil.setHeight(txtResult, "100%");
|
||||
txtResult.setReadonly(true);
|
||||
|
||||
cbxValid = new Checkbox();
|
||||
|
|
Loading…
Reference in New Issue