예제 #1
0
 // TODO this will eventually be removed, currently used to avoid updating to
 // server side.
 public void setPopupPositionNoUpdate(int left, int top) {
   if (top < 0) {
     // ensure window is not moved out of browser window from top of the
     // screen
     top = 0;
   }
   super.setPopupPosition(left, top);
 }
예제 #2
0
 @Override
 public void setPopupPosition(int left, int top) {
   if (top < 0) {
     // ensure window is not moved out of browser window from top of the
     // screen
     top = 0;
   }
   super.setPopupPosition(left, top);
   if (left != uidlPositionX && client != null) {
     client.updateVariable(id, "positionx", left, false);
     uidlPositionX = left;
   }
   if (top != uidlPositionY && client != null) {
     client.updateVariable(id, "positiony", top, false);
     uidlPositionY = top;
   }
 }