diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-16 07:43:41 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-16 07:43:41 +0000 |
commit | 5f217a00705c8a912ee4ea245866d5a3703d19df (patch) | |
tree | 29662a6099913fbe59e1f25aca9dd39559435ce0 /src | |
parent | f47163e11f1da3320c24f0055dd5d32bef74d320 (diff) | |
download | vaadin-framework-5f217a00705c8a912ee4ea245866d5a3703d19df.tar.gz vaadin-framework-5f217a00705c8a912ee4ea245866d5a3703d19df.zip |
better renderspace estimate on initial render
svn changeset:6221/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java index 57938ffd56..45c5fcfc04 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java @@ -2236,7 +2236,8 @@ public class IScrollTable extends FlowPanel implements Table, ScrollListener { // a best guess (expecting similar content in all // columns -> // if one component is relative width so are others) - w = headerCell.getOffsetWidth(); + w = headerCell.getOffsetWidth() - CELL_EXTRA_WIDTH + - CELL_CONTENT_PADDING; } } return new RenderSpace(w, getRowHeight()); |