]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed scrolltable regression, sanity check for IE
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 29 Apr 2009 14:44:08 +0000 (14:44 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 29 Apr 2009 14:44:08 +0000 (14:44 +0000)
svn changeset:7575/svn branch:6.0

src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java

index 96d10fa7c35296da637e401d3c32951191d191b4..202511b8f98fd981ed587e629fddc668f9f2f85c 100644 (file)
@@ -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);
 
                 /*
@@ -1948,8 +1951,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);