Browse Source

fixes #1580

svn changeset:4825/svn branch:trunk
tags/6.7.0.beta1
Matti Tahvonen 16 years ago
parent
commit
c5412e0fa6
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java

+ 10
- 1
src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java View File

@@ -552,7 +552,7 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
if (!width.equals("100%")) {
super.setWidth(width);
}
// contained blocks are relative to parents
// contained blocks are relatively to container element
bodyContainer.setWidth("100%");
tHead.setWidth("100%");

@@ -1309,6 +1309,15 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
final HeaderCell c = getHeaderCell(cid);
if (!c.isEnabled()) {
setHeaderCell(index, c);
if (c.getWidth() == -1) {
if (initializedAndAttached) {
// column is not drawn before,
// we will need a column width recalculation
initializedAndAttached = false;
initialContentReceived = false;
isNewBody = true;
}
}
}
}


Loading…
Cancel
Save