]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed IE6&7 Footer cell width and height problem.
authorJohn Alhroos <john.ahlroos@itmill.com>
Mon, 26 Apr 2010 14:52:30 +0000 (14:52 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Mon, 26 Apr 2010 14:52:30 +0000 (14:52 +0000)
svn changeset:12848/svn branch:6.4

WebContent/VAADIN/themes/base/table/table.css
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 45e55c3da91f3c8b4b0e9b8548e8683c9d686488..becffeaa8b556eccad6139ab7a582c07662a13f3 100644 (file)
        border-top: none;
        background: #efefef;
 }
-.v-table-footer table,
-.v-table-table {
+.v-table-footer table{
        border-spacing: 0;
-       border-collapse: separate;
+       border-collapse: collapse;
        margin: 0;
        padding: 0;
        border: 0;
index fbd762027b268690c388a0fac2136e0ec27ea401..b04e5f998dae74d5e9577f90d4961c8640d6785c 100644 (file)
@@ -2041,14 +2041,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                 /*
                  * Reduce width with one pixel for the right border since the
                  * footers does not have any spacers between them.
-                 * 
-                 * IE6 will calculate the footer width wrong by 2 pixels due to
-                 * borders used so add it to border widths.
                  */
                 int borderWidths = 1;
-                if (BrowserInfo.get().isIE6()) {
-                    borderWidths += 2;
-                }
 
                 // Set the container width (check for negative value)
                 if (w - borderWidths >= 0) {
@@ -2074,12 +2068,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                 } else {
                     DeferredCommand.addCommand(new Command() {
                         public void execute() {
-
                             int borderWidths = 1;
-                            if (BrowserInfo.get().isIE6()) {
-                                borderWidths += 2;
-                            }
-
                             int tdWidth = width
                                     + scrollBody.getCellExtraWidth()
                                     - borderWidths;