Browse Source

Another regression fix after #6677 #6934

svn changeset:20149/svn branch:6.6
tags/6.7.0.beta1
John Alhroos 13 years ago
parent
commit
40d3bbeb17
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

+ 8
- 8
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java View File

@@ -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;

Loading…
Cancel
Save