popup.setPopupPositionAndShow(new PopupPanel.PositionCallback() {
public void setPosition(int offsetWidth, int offsetHeight) {
int r = getToothNumber();
if(r == 14 || r == 15 || r == 16) {
popup.setPopupPosition(event.getClientX() - 170, event.getClientY());
popup.show();
} else if(r > 16) {
popup.setPopupPosition(event.getClientX() - 56, event.getClientY() - 550);
popup.show();
} else {
popup.setPopupPosition(event.getClientX() + 22, event.getClientY());
popup.show();
}
}
});
问问题
56 次