diff options
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java index 2f604a9927..35e6adf71e 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java @@ -1067,6 +1067,9 @@ public class IScrollTable extends FlowPanel implements Table, ScrollListener { DOM.setStyleAttribute(captionContainer, "width", ""); setWidth(""); } else { + + ApplicationConnection.getConsole().log("DEB2 " + w + " "); + captionContainer.getStyle().setPropertyPx("width", w); /* @@ -1951,8 +1954,10 @@ public class IScrollTable extends FlowPanel implements Table, ScrollListener { final int cells = DOM.getChildCount(row.getElement()); for (int i = 0; i < cells; i++) { final Element cell = DOM.getChild(row.getElement(), i); - final int w = IScrollTable.this - .getColWidth(getColKeyByIndex(i)); + int w = IScrollTable.this.getColWidth(getColKeyByIndex(i)); + if (w < 0) { + w = 0; + } cell.getFirstChildElement().getStyle() .setPropertyPx("width", w); cell.getStyle().setPropertyPx("width", w); |