]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add IE fall-back for focus on removal of selected row (#13008) 7.1.10
authorHenri Sara <hesara@vaadin.com>
Fri, 17 Jan 2014 14:42:07 +0000 (16:42 +0200)
committerHenri Sara <hesara@vaadin.com>
Fri, 17 Jan 2014 14:42:07 +0000 (16:42 +0200)
This change is only for the 7.1.10 release branch.

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

index 3c574f8f9206f40fa507ad9ea84fbb7c79965038..d58dc309b245c3e16f17973f77fd4198dd4e51de 100644 (file)
@@ -1325,7 +1325,14 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             }
         } else {
             // multiselect mode
-            setRowFocus(scrollBody.getRowByRowIndex(firstRowInViewPort));
+            // this is a hack to get around an IE issue in
+            // MultiSelectWithRemovedRow test
+            if (firstRowInViewPort >= 0) {
+                setRowFocus(scrollBody.getRowByRowIndex(firstRowInViewPort));
+            } else {
+                setRowFocus(scrollBody.getRowByRowIndex(scrollBody
+                        .getFirstRendered()));
+            }
         }
     }