From 327d3174be82f5523ad714bb6d3febe3aebc5123 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 27 Aug 2012 13:43:51 +0300 Subject: [PATCH] Removed IE6/IE7 specific code accidentally included in merge --- .../gwt/client/ui/table/VScrollTable.java | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/client/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java b/client/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java index dcec10f86f..eda3f7090f 100644 --- a/client/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java +++ b/client/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java @@ -5297,14 +5297,9 @@ public class VScrollTable extends FlowPanel implements HasWidgets, if (dragmode == DRAGMODE_MULTIROW && isMultiSelectModeAny() && rowKeyIsSelected(rowKey)) { - // Create a drag image of ALL rows (ie6,7 has a different - // DOM structure) - if(BrowserInfo.get().isIE6() || BrowserInfo.get().isIE7()){ - ev.createDragImage(scrollBody.getElement(), true); - } else { - ev.createDragImage( - (Element) scrollBody.tBodyElement.cast(), true); - } + // Create a drag image of ALL rows + ev.createDragImage( + (Element) scrollBody.tBodyElement.cast(), true); // Hide rows which are not selected Element dragImage = ev.getDragImage(); @@ -5314,18 +5309,10 @@ public class VScrollTable extends FlowPanel implements HasWidgets, VScrollTableRow next = (VScrollTableRow) iterator .next(); - Element child; - if(BrowserInfo.get().isIE6() || BrowserInfo.get().isIE7()){ - child = (Element) dragImage.getChild(1) - .getChild(0) - .getChild(i++); - } else { - child = (Element) dragImage.getChild(i++); - } + Element child = (Element) dragImage.getChild(i++); if (!rowKeyIsSelected(next.rowKey)) { - child.getStyle().setVisibility( - Visibility.HIDDEN); + child.getStyle().setVisibility(Visibility.HIDDEN); } } } else { -- 2.39.5