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());
|
||||
bpartnerSearch.getComponent().setHflex("true");
|
||||
row.appendCellChild(bpartnerSearch.getComponent(),2);
|
||||
bpartnerSearch.showMenu();
|
||||
Hbox box = new Hbox();
|
||||
box.appendChild(dateLabel.rightAlign());
|
||||
box.appendChild(dateField.getComponent());
|
||||
|
|
|
@ -112,7 +112,7 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
|
|||
this.component.getParent().appendChild(popupMenu);
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue