diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-28 07:39:41 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-28 07:39:41 +0000 |
commit | 000dc3bcb31921939ccfe334a1ed461c3cb9ff05 (patch) | |
tree | 7a3656033832854ee83623d0765dda2ad85929ed /src | |
parent | d4b866253fc80c8771833821e446d7d13eadb975 (diff) | |
download | vaadin-framework-000dc3bcb31921939ccfe334a1ed461c3cb9ff05.tar.gz vaadin-framework-000dc3bcb31921939ccfe334a1ed461c3cb9ff05.zip |
#6697: fixes regression (ResizeColumnAfterScrolling) from [18492]
svn changeset:18519/svn branch:6.6
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 24 |
1 files 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 |