From: Marc Englund Date: Fri, 27 Jun 2008 08:19:40 +0000 (+0000) Subject: There was a small yellow strip on the bottom of the tooltip, it it had an error messa... X-Git-Tag: 6.7.0.beta1~4551 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ba1ed2544f435bc75e40718d39977653593cfcf;p=vaadin-framework.git There was a small yellow strip on the bottom of the tooltip, it it had an error message, but no description. Fixed. svn changeset:4959/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java b/src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java index 42509f3bad..93f6f3be79 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java @@ -49,9 +49,11 @@ public class Tooltip extends ToolkitOverlay { } if (info.getTitle() != null && !"".equals(info.getTitle())) { DOM.setInnerHTML(description, info.getTitle()); + DOM.setStyleAttribute(description, "display", ""); hasContent = true; } else { DOM.setInnerHTML(description, ""); + DOM.setStyleAttribute(description, "display", "none"); } if (hasContent) { setPopupPositionAndShow(new PositionCallback() {