From 000dc3bcb31921939ccfe334a1ed461c3cb9ff05 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Thu, 28 Apr 2011 07:39:41 +0000 Subject: [PATCH] #6697: fixes regression (ResizeColumnAfterScrolling) from [18492] svn changeset:18519/svn branch:6.6 --- .../terminal/gwt/client/ui/VScrollTable.java | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 938de7f946..801062a7ef 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -2867,6 +2867,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, availableCells.values()); columns.remove(source); enqueueColumnResizeEventsForColumns(columns); + forceRealignColumnHeaders(); } } @@ -5019,17 +5020,22 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, } }); - if (BrowserInfo.get().isIE()) { - /* - * IE does not fire onscroll event if scroll position is - * reverted to 0 due to the content element size growth. Ensure - * headers are in sync with content manually. Safe to use null - * event as we don't actually use the event object in listener. - */ - onScroll(null); - } + forceRealignColumnHeaders(); } + }; + + private void forceRealignColumnHeaders() { + if (BrowserInfo.get().isIE()) { + /* + * IE does not fire onscroll event if scroll position is + * reverted to 0 due to the content element size growth. Ensure + * headers are in sync with content manually. Safe to use null + * event as we don't actually use the event object in listener. + */ + onScroll(null); + } + } /** * helper to set pixel size of head and body part -- 2.39.5