Revision: 8129
Author: jlaba...@google.com
Date: Thu May 13 08:05:27 2010
Log: Fixing a bug where the colspan of the loading icon in CellTable can be set to 0, which causes a JS exception in IE.

http://code.google.com/p/google-web-toolkit/source/detail?r=8129

Modified:
/branches/2.1/bikeshed/src/com/google/gwt/bikeshed/list/client/CellTable.java

=======================================
--- /branches/2.1/bikeshed/src/com/google/gwt/bikeshed/list/client/CellTable.java Wed May 12 10:44:13 2010 +++ /branches/2.1/bikeshed/src/com/google/gwt/bikeshed/list/client/CellTable.java Thu May 13 08:05:27 2010
@@ -789,7 +789,7 @@
     // Update the colspan.
TableCellElement td = tbodyLoading.getRows().getItem(0).getCells().getItem(
         0);
-    td.setColSpan(columns.size());
+    td.setColSpan(Math.max(1, columns.size()));
     setVisible(tbodyLoading, visible);
   }
 }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to