summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan.kronqvist@itmill.com>2011-10-07 07:02:15 +0000
committerJonatan Kronqvist <jonatan.kronqvist@itmill.com>2011-10-07 07:02:15 +0000
commit1042af9c7a0a1a3ef8a61bb10797f38768cd86d3 (patch)
tree9c00d0cf0d072cc2b1090e9456c2b17b44dc2b63
parent4865185d709a9c4b5981ff2637fa7306c687bd7b (diff)
downloadvaadin-framework-1042af9c7a0a1a3ef8a61bb10797f38768cd86d3.tar.gz
vaadin-framework-1042af9c7a0a1a3ef8a61bb10797f38768cd86d3.zip
Fixes #7731
svn changeset:21627/svn branch:6.7
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index fc10ad97c7..53aa4c407e 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -1020,7 +1020,6 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
}
updateHeader(uidl.getStringArrayAttribute("vcolorder"));
-
updateFooter(uidl.getStringArrayAttribute("vcolorder"));
}
@@ -2876,8 +2875,16 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
}
if (width != c.getWidth() && scrollBody != null) {
// Do a more thorough update if a column is resized from
- // the server
- setColWidth(getColIndexByKey(c.cid), width, true);
+ // the server *after* the header has been properly
+ // initialized
+ final int colIx = getColIndexByKey(c.cid);
+ final int newWidth = width;
+ Scheduler.get().scheduleDeferred(
+ new ScheduledCommand() {
+ public void execute() {
+ setColWidth(colIx, newWidth, true);
+ }
+ });
refreshContentWidths = true;
} else {
c.setWidth(width, true);
@@ -2900,7 +2907,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
if (refreshContentWidths) {
// Recalculate the column sizings if any column has changed
- triggerLazyColumnAdjustment(true);
+ Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ public void execute() {
+ triggerLazyColumnAdjustment(true);
+ }
+ });
}
// check for orphaned header cells