summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAutomerge <automerge@vaadin.com>2012-02-15 14:16:52 +0000
committerAutomerge <automerge@vaadin.com>2012-02-15 14:16:52 +0000
commitdab5c83ffe1656cac273d636dec958b238f99dc4 (patch)
tree5697eb22d657bd829b5bacb197dc6de7777308cf
parentb3a19fc9e8ff957c4624b78e8054e9dbfcf7db47 (diff)
downloadvaadin-framework-dab5c83ffe1656cac273d636dec958b238f99dc4.tar.gz
vaadin-framework-dab5c83ffe1656cac273d636dec958b238f99dc4.zip
[merge from 6.7] #4353 ComboBox.removeAllItems did not remove selected icon: additional fix to avoid changing undefined width combobox initial width
svn changeset:23031/svn branch:6.8
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
index 2a1e69f68c..8362d6fbec 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
@@ -1372,8 +1372,10 @@ public class VFilterSelect extends Composite implements Paintable, Field,
*/
private void setSelectedItemIcon(String iconUri) {
if (iconUri == null || iconUri.length() == 0) {
- panel.remove(selectedItemIcon);
- updateRootWidth();
+ if (selectedItemIcon.isAttached()) {
+ panel.remove(selectedItemIcon);
+ updateRootWidth();
+ }
} else {
panel.insert(selectedItemIcon, 0);
selectedItemIcon.setUrl(iconUri);