From 40d3bbeb17b8c4adb2cd4fabccb1b89f2af92f29 Mon Sep 17 00:00:00 2001 From: John Alhroos Date: Mon, 8 Aug 2011 09:41:06 +0000 Subject: Another regression fix after #6677 #6934 svn changeset:20149/svn branch:6.6 --- src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 471d74e2cf..a5411fa0e7 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -1671,11 +1671,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, } } - if (checksum != availW) { + if (extraSpace > 0 && checksum != availW) { /* - * There might be in some cases a rounding error of 1px so if - * there is one then we give the first undefined column 1 more - * pixel + * There might be in some cases a rounding error of 1px when + * extra space is divided so if there is one then we give the + * first undefined column 1 more pixel */ headCells = tHead.iterator(); i = 0; @@ -5091,11 +5091,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, colIndex++; } - if (checksum != totalUndefinedNaturalWidths) { + if (extraSpace > 0 && checksum != availW) { /* - * There might be in some cases a rounding error of 1px so if - * there is one then we give the first undefined column 1 more - * pixel + * There might be in some cases a rounding error of 1px when + * extra space is divided so if there is one then we give the + * first undefined column 1 more pixel */ headCells = tHead.iterator(); colIndex = 0; -- cgit v1.2.3