summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2011-11-15 16:44:05 +0000
committerArtur Signell <artur.signell@itmill.com>2011-11-15 16:44:05 +0000
commit559001907bffce9b3d592920dd0d5434ecd9de8f (patch)
treeaaa389fa961528675c6bf9688f6688354563a742 /src
parent4f7acdce8c86560f3a4159a8c4706c78405ee6e1 (diff)
downloadvaadin-framework-559001907bffce9b3d592920dd0d5434ecd9de8f.tar.gz
vaadin-framework-559001907bffce9b3d592920dd0d5434ecd9de8f.zip
#7056 inconsistency between Chameleon theme and standard Vaadin theme concerning Combobox
svn changeset:22013/svn branch:6.7
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
index ae7ee1a653..ebaf797e09 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
@@ -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();
}