]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #5186
authorJohn Alhroos <john.ahlroos@itmill.com>
Fri, 18 Jun 2010 08:26:30 +0000 (08:26 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Fri, 18 Jun 2010 08:26:30 +0000 (08:26 +0000)
svn changeset:13756/svn branch:6.4

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index cf7d012919756934f6f4e3227c8711109c46401e..1edaf092a65a0bf4f7e5b9952bbe0b771bee0abc 100644 (file)
@@ -1061,10 +1061,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
         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) {
@@ -2543,11 +2541,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
             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("");