summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuuso Valli <juuso@vaadin.com>2014-05-28 14:57:12 +0300
committerJuuso Valli <juuso@vaadin.com>2014-06-02 11:20:30 +0300
commit154a482c56c79315249f16d4ff2db1944de590dd (patch)
treeafaf3d04e13665149441aab15b295ebcab0d92a3
parentd1ad2738179fdff10e13367a86e38b7e0de9e87c (diff)
downloadvaadin-framework-154a482c56c79315249f16d4ff2db1944de590dd.tar.gz
vaadin-framework-154a482c56c79315249f16d4ff2db1944de590dd.zip
Fix regression with error tooltips (#13695)
Change-Id: Ia076ba95ec3abd6625e81e17bdcf000a20349f4e
-rw-r--r--client/src/com/vaadin/client/VTooltip.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/VTooltip.java b/client/src/com/vaadin/client/VTooltip.java
index e0daa4d34e..487f577ae3 100644
--- a/client/src/com/vaadin/client/VTooltip.java
+++ b/client/src/com/vaadin/client/VTooltip.java
@@ -19,6 +19,7 @@ import com.google.gwt.aria.client.LiveValue;
import com.google.gwt.aria.client.RelevantValue;
import com.google.gwt.aria.client.Roles;
import com.google.gwt.dom.client.Element;
+import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.BlurHandler;
import com.google.gwt.event.dom.client.ClickEvent;
@@ -116,8 +117,10 @@ public class VTooltip extends VWindowOverlay {
}
if (info.getTitle() != null && !"".equals(info.getTitle())) {
description.setInnerHTML(info.getTitle());
+ description.getStyle().clearDisplay();
} else {
description.setInnerHTML("");
+ description.getStyle().setDisplay(Display.NONE);
}
currentTooltipInfo = info;
}