Reputation: 5
MouseUp
and Mousedown
events are not working for PopupPanel
in GWT
, but the same code is working for normal view in GWT
.Is there any thing we need to do before writing mouse events on GWT
PopupPanel
.Kindly guide me as soon as possible.
Upvotes: 0
Views: 379
Reputation: 297
I've solved this problem for myself by calling "setModal(false)" on the popup panel that contains the DateBox widget.
Upvotes: 0
Reputation: 1
popup.addMouseUpHandler(new MouseUpHandler()
{
public void onMouseUp(MouseUpEvent event)
{
popup.setPopupPositionAndShow(new PopupPanel.PositionCallback()
{
public void setPosition(int offsetWidth, int offsetHeight)
{
int left = (Window.getClientWidth() - offsetWidth) / 24;
int top = (Window.getClientHeight() - offsetHeight) / 5;
popup.setPopupPosition(left, top);
}
});
}
});
Upvotes: 0