diff options
-rw-r--r-- | client/src/com/vaadin/client/ui/VScrollTable.java | 9 |
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())); + } } } |