scrollBody.setColWidth(colIndex, w);
// Set footer column width
- final FooterCell fcell = tFoot.getFooterCell(colIndex);
- if (fcell != null) {
- fcell.setWidth(w, isDefinedWidth);
- }
+ FooterCell fcell = tFoot.getFooterCell(colIndex);
+ fcell.setWidth(w, isDefinedWidth);
}
private int getColWidth(String colKey) {
if (width == w) {
return;
}
- width = w;
- if (width <= 0) {
+ if (width == -1) {
// go to default mode, clip content if necessary
DOM.setStyleAttribute(captionContainer, "overflow", "");
}
+ width = w;
if (w == -1) {
DOM.setStyleAttribute(captionContainer, "width", "");
setWidth("");