]> source.dussan.org Git - vaadin-framework.git/commitdiff
#7056 inconsistency between Chameleon theme and standard Vaadin theme concerning...
authorArtur Signell <artur.signell@itmill.com>
Tue, 15 Nov 2011 16:44:05 +0000 (16:44 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 15 Nov 2011 16:44:05 +0000 (16:44 +0000)
svn changeset:22013/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java

index ae7ee1a65375cf41d23160bc0f4635c34a3d3155..ebaf797e095638fdd6f799e64072dcb6c30dbd95 100644 (file)
@@ -100,7 +100,15 @@ public class VFilterSelect extends Composite implements Paintable, Field,
                 sb.append(Util.escapeAttribute(iconUri));
                 sb.append("\" alt=\"\" class=\"v-icon\" />");
             }
-            sb.append("<span>" + Util.escapeHTML(caption) + "</span>");
+            String content;
+            if ("".equals(caption)) {
+                // Ensure that empty options use the same height as other
+                // options and are not collapsed (#7506)
+                content = "&nbsp;";
+            } else {
+                content = Util.escapeHTML(caption);
+            }
+            sb.append("<span>" + content + "</span>");
             return sb.toString();
         }