[Bug #880] Fixed increasing templateFinder component widths

FEA: ItEr72S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-03-11 16:05:18 +01:00
parent 2edce46f27
commit 73b5c05ba7
4 changed files with 9 additions and 5 deletions

View file

@ -94,10 +94,12 @@ public abstract class TemplateFinder<T extends OrderElementTemplate> extends
final Listcell codeCell = new Listcell();
codeCell.setLabel(template.getCode());
codeCell.setParent(item);
codeCell.setStyle("width:200px");
final Listcell nameCell = new Listcell();
nameCell.setParent(item);
nameCell.setLabel(template.getName());
nameCell.setStyle("width:300px");
}
}

View file

@ -92,6 +92,8 @@ public class TemplateFinderPopup extends
}
bandboxSearch = new BandboxSearch();
bandboxSearch.setFinder(finderName);
bandboxSearch.setWidthBandbox("300px");
bandboxSearch.setListboxWidth("400px");
finderPlaceholder.appendChild(bandboxSearch);
bandboxSearch.afterCompose();
popup.open(ref, position);
@ -156,7 +158,7 @@ public class TemplateFinderPopup extends
onCancel();
}
});
finderPlaceholder = (Component) getFellow("finderPlaceholder");
finderPlaceholder = getFellow("finderPlaceholder");
popup = (Popup) getFellow("finderPopup");
caption = (Caption) getFellow("finderCaption");
caption.setLabel(captionLabel);

View file

@ -41,7 +41,7 @@
<bandbox id="bandbox" autodrop="true">
<bandpopup>
<vbox height="50px">
<listbox id="listbox" width="200px" height="100px"
<listbox id="listbox" sclass="bandbox-search" height="100px"
vflex="true" model="${arg.model}"
action="onClick: closeBandbox(#{listbox})">
<listhead id="listhead" />

View file

@ -24,10 +24,10 @@
templateFinderComponent = self;
]]>
</zscript>
<popup id="finderPopup">
<groupbox mold="3d">
<popup id="finderPopup" sclass="finder-popup">
<groupbox mold="3d" closable="false" width="400px">
<caption id="finderCaption" />
<div id="finderPlaceholder" />
<div id="finderPlaceholder" />
<hbox>
<button id="acceptButton" />
<button id="cancelButton" />