// measure the actual text width
Element element = getElement();
TextMetrics tm = TextMetrics.get(element, textMetricsKey);
String text = element.getInnerText();
int textWidth = tm.getWidth(text);
tm.release();
if (labelWidth >= textWidth) {
updateTitle(false);
return;
}