return allow;
}
private void positionTip(NativeEvent e) {
Point thumbPosition = appearance.getThumb(parent).<XElement> cast().getPosition(false);
int x = thumbPosition.getX();
int y = thumbPosition.getY();
XElement p = XElement.as(parent);
int v = setValue(p, reverseValue(p, appearance.getClickedValue(context, p, e)));
tip.getAppearance().getTextElement(tip.getElement()).setInnerText(onFormatValue(v));
tip.showAt(-5000, -5000);
int w = tip.getOffsetWidth();
int h = tip.getOffsetHeight();
if (!vertical) {
boolean top = y > 35;
if (top) {
thumbPosition.setX(x - (w / 2) + (thumbWidth / 2));
thumbPosition.setY(y - h - 5);
} else {
thumbPosition.setX(x - (w / 2) + (thumbWidth / 2));
thumbPosition.setY(y + thumbHeight + 5);
}
} else {
int vleft = Window.getClientWidth();
boolean right = x < (vleft - 30);
if (right) {
thumbPosition.setX(parent.getAbsoluteLeft() + parent.getOffsetWidth() + 5);
thumbPosition.setY(Math.max(0, y - (h / 2)));
} else {
thumbPosition.setX(parent.getAbsoluteLeft() - w - 5);
thumbPosition.setY(Math.max(0, y - (h / 2)));
}
}
tip.showAt(thumbPosition);
}