]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix regression with error tooltips (#13695)
authorJuuso Valli <juuso@vaadin.com>
Wed, 28 May 2014 11:57:12 +0000 (14:57 +0300)
committerJuuso Valli <juuso@vaadin.com>
Mon, 2 Jun 2014 08:20:30 +0000 (11:20 +0300)
Change-Id: Ia076ba95ec3abd6625e81e17bdcf000a20349f4e

client/src/com/vaadin/client/VTooltip.java

index e0daa4d34ece714fb067fd6f0778930224d67737..487f577ae3ce0021f116547ddb418b161471adf6 100644 (file)
@@ -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;
     }