aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2014-01-17 16:42:07 +0200
committerHenri Sara <hesara@vaadin.com>2014-01-17 16:42:07 +0200
commitef24a738e50295645f822849c027c86f8ce12d19 (patch)
tree6a98ee99c9e9948cfb4fb2fe97948b5ba440a2d1
parent55b958cfd26bc7763223f0f08062f9f1d4a24af9 (diff)
downloadvaadin-framework-ef24a738e50295645f822849c027c86f8ce12d19.tar.gz
vaadin-framework-ef24a738e50295645f822849c027c86f8ce12d19.zip
Add IE fall-back for focus on removal of selected row (#13008)7.1.10
This change is only for the 7.1.10 release branch.
-rw-r--r--client/src/com/vaadin/client/ui/VScrollTable.java9
1 files changed, 8 insertions, 1 deletions
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()));
+ }
}
}