diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2013-02-06 12:26:42 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-02-06 12:26:42 +0000 |
commit | 797e7dfef177643e3b6e81692000440156e490b2 (patch) | |
tree | f0bc7b3b3e1c379a476a9afdf24ec1515f0fa03f /client | |
parent | 7e278d4af37a45fda84cbda917418dcd6d8e08e6 (diff) | |
parent | 1a0a3bd5cf248d3b368e52608d38767f2a501115 (diff) | |
download | vaadin-framework-797e7dfef177643e3b6e81692000440156e490b2.tar.gz vaadin-framework-797e7dfef177643e3b6e81692000440156e490b2.zip |
Merge "Merge of (#10890) to Vaadin 7." into 7.0
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VScrollTable.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index b9244a1e91..8553398718 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -2629,7 +2629,11 @@ public class VScrollTable extends FlowPanel implements HasWidgets, for (int i = start; i <= visibleCellCount; i++) { if (i > 0) { final String colKey = getColKeyByIndex(i - 1); - slotX += getColWidth(colKey); + // getColWidth only returns the internal width + // without padding, not the offset width of the + // whole td (#10890) + slotX += getColWidth(colKey) + + scrollBody.getCellExtraWidth(); } final int dist = Math.abs(x - slotX); if (closestDistance == -1 || dist < closestDistance) { |