Browse Source

Fixes #7731

svn changeset:21627/svn branch:6.7
tags/6.7.1
Jonatan Kronqvist 12 years ago
parent
commit
1042af9c7a
1 changed files with 15 additions and 4 deletions
  1. 15
    4
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

+ 15
- 4
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java View File

@@ -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

Loading…
Cancel
Save