}
tooltip = new Tooltip(sender, offsetX, offsetY, text, delay, styleName);
int left = sender.getAbsoluteLeft() + offsetX;
int top = sender.getAbsoluteTop() + sender.getOffsetHeight() + offsetY;
tooltip.setPopupPosition(left, top);
tooltip.setPopupPositionAndShow(new PositionCallback(){
@Override
public void setPosition(int offsetWidth, int offsetHeight) {
int absoluteRight = tooltip.getAbsoluteLeft() + offsetWidth;
int visibleRight = Window.getClientWidth();