]> source.dussan.org Git - vaadin-framework.git/commitdiff
giving more space for rel size components inside table
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 11:31:39 +0000 (11:31 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 11:31:39 +0000 (11:31 +0000)
svn changeset:6266/svn branch:trunk

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

index 45c5fcfc047af249084324585fa5aa60c6725904..2b0bb60aae519fa508d93ac2c0ed618b8f288ea3 100644 (file)
@@ -2228,16 +2228,14 @@ public class IScrollTable extends FlowPanel implements Table, ScrollListener {
                 HeaderCell headerCell = tHead.getHeaderCell(i);
                 if (headerCell != null) {
                     if (initializedAndAttached) {
-                        w = headerCell.getWidth() - CELL_EXTRA_WIDTH
-                                - CELL_CONTENT_PADDING;
+                        w = headerCell.getWidth() - CELL_CONTENT_PADDING;
                     } else {
                         // header offset width is not absolutely correct value,
                         // but
                         // a best guess (expecting similar content in all
                         // columns ->
                         // if one component is relative width so are others)
-                        w = headerCell.getOffsetWidth() - CELL_EXTRA_WIDTH
-                                - CELL_CONTENT_PADDING;
+                        w = headerCell.getOffsetWidth() - CELL_CONTENT_PADDING;
                     }
                 }
                 return new RenderSpace(w, getRowHeight());