]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed non-null captions to take one line of height
authorJouni Koivuviita <jouni@jounikoivuviita.com>
Wed, 18 Apr 2012 14:12:39 +0000 (17:12 +0300)
committerJouni Koivuviita <jouni@jounikoivuviita.com>
Wed, 18 Apr 2012 14:12:39 +0000 (17:12 +0300)
src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java

index d6efc97e5040b18992f8f768b722757afcfc1bcc..eae9dd035563dd4389a0395468388b1ae19ddbd8 100644 (file)
@@ -261,7 +261,7 @@ public class VBoxLayout extends FlowPanel {
                     this.captionText.addClassName("v-captiontext");
                     caption.appendChild(this.captionText);
                 }
-                if (captionText.equals("")) {
+                if (captionText.trim().equals("")) {
                     this.captionText.setInnerHTML("&nbsp;");
                 } else {
                     this.captionText.setInnerText(captionText);