From: Teemu Suo-Anttila Date: Mon, 12 May 2014 07:47:34 +0000 (+0300) Subject: Fix SelectedItemIcon rendering on IE (#13731) X-Git-Tag: 7.2.0~7^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b60bbb8576b456c11d324b8f8a92d8ade54ffff;p=vaadin-framework.git Fix SelectedItemIcon rendering on IE (#13731) Change-Id: Ie6a3464399aba76b9299bcb7d326ef4e6b6c858b --- 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) {