IDEMPIERE-979:WSearchEditor used in forms don't have popup menu
This commit is contained in:
parent
59ec9aa29a
commit
5ca38210e7
|
@ -203,6 +203,7 @@ public class WAllocation extends Allocation
|
||||||
row.appendCellChild(bpartnerLabel.rightAlign());
|
row.appendCellChild(bpartnerLabel.rightAlign());
|
||||||
bpartnerSearch.getComponent().setHflex("true");
|
bpartnerSearch.getComponent().setHflex("true");
|
||||||
row.appendCellChild(bpartnerSearch.getComponent(),2);
|
row.appendCellChild(bpartnerSearch.getComponent(),2);
|
||||||
|
bpartnerSearch.showMenu();
|
||||||
Hbox box = new Hbox();
|
Hbox box = new Hbox();
|
||||||
box.appendChild(dateLabel.rightAlign());
|
box.appendChild(dateLabel.rightAlign());
|
||||||
box.appendChild(dateField.getComponent());
|
box.appendChild(dateField.getComponent());
|
||||||
|
|
|
@ -112,7 +112,7 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
|
||||||
this.component.getParent().appendChild(popupMenu);
|
this.component.getParent().appendChild(popupMenu);
|
||||||
|
|
||||||
// when field have label, add action zoom when click to label, and show menu when right click to label
|
// when field have label, add action zoom when click to label, and show menu when right click to label
|
||||||
if (!gridField.isFieldOnly())
|
if (!readOnly)
|
||||||
{
|
{
|
||||||
if (popupMenu.isZoomEnabled() && this instanceof IZoomableEditor)
|
if (popupMenu.isZoomEnabled() && this instanceof IZoomableEditor)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue