diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-05-12 10:47:34 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-05-12 10:47:34 +0300 |
commit | 2b60bbb8576b456c11d324b8f8a92d8ade54ffff (patch) | |
tree | 88014f8964d7fd9f745a771610c305cf8d321f38 /client | |
parent | ee16285aee05e6d482f46e36ed60064b0ae1543a (diff) | |
download | vaadin-framework-2b60bbb8576b456c11d324b8f8a92d8ade54ffff.tar.gz vaadin-framework-2b60bbb8576b456c11d324b8f8a92d8ade54ffff.zip |
Fix SelectedItemIcon rendering on IE (#13731)
Change-Id: Ie6a3464399aba76b9299bcb7d326ef4e6b6c858b
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VFilterSelect.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VFilterSelect.java b/client/src/com/vaadin/client/ui/VFilterSelect.java index 2d080ecf3b..94adc1c4b5 100644 --- a/client/src/com/vaadin/client/ui/VFilterSelect.java +++ b/client/src/com/vaadin/client/ui/VFilterSelect.java @@ -1416,6 +1416,10 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler, panel.remove(selectedItemIcon); } selectedItemIcon = new IconWidget(client.getIcon(iconUri)); + // Older IE versions don't scale icon correctly if DOM + // contains height and width attributes. + selectedItemIcon.getElement().removeAttribute("height"); + selectedItemIcon.getElement().removeAttribute("width"); selectedItemIcon.addDomHandler(new LoadHandler() { @Override public void onLoad(LoadEvent event) { |