]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix SelectedItemIcon rendering on IE (#13731)
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 12 May 2014 07:47:34 +0000 (10:47 +0300)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 12 May 2014 07:47:34 +0000 (10:47 +0300)
Change-Id: Ie6a3464399aba76b9299bcb7d326ef4e6b6c858b

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

index 2d080ecf3b0eca955cdda9f918be85716c629173..94adc1c4b5b9dc3a1cdadda0089e06ce30574b8c 100644 (file)
@@ -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) {