From ef24a738e50295645f822849c027c86f8ce12d19 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Fri, 17 Jan 2014 16:42:07 +0200 Subject: [PATCH] Add IE fall-back for focus on removal of selected row (#13008) This change is only for the 7.1.10 release branch. --- client/src/com/vaadin/client/ui/VScrollTable.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index 3c574f8f92..d58dc309b2 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -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())); + } } } -- 2.39.5