Mouse events are not working in gwt popup panel

380 views Asked by At

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.

2

There are 2 answers

1
user On
                      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);


                  }
            });
            }
            });
0
Mat DeLong On

I've solved this problem for myself by calling "setModal(false)" on the popup panel that contains the DateBox widget.