aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/main
diff options
context:
space:
mode:
authorAnastasia Smirnova <anasmi@utu.fi>2018-05-28 11:48:57 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-28 10:48:57 +0200
commitd9303ad7431dcf7a7d2a0052abdee4b561183c01 (patch)
treec3744b600bf10c748df9790589a7a3e5156431e6 /client/src/main
parentf3a3a9f81287dac1f8c4af83f6d80c258c4800cd (diff)
downloadvaadin-framework-d9303ad7431dcf7a7d2a0052abdee4b561183c01.tar.gz
vaadin-framework-d9303ad7431dcf7a7d2a0052abdee4b561183c01.zip
Add bottomBorder size to check in Grid (#10946)
Fixes #10931
Diffstat (limited to 'client/src/main')
-rwxr-xr-xclient/src/main/java/com/vaadin/client/widgets/Grid.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java
index a8b070dbd0..fbfae78ac5 100755
--- a/client/src/main/java/com/vaadin/client/widgets/Grid.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java
@@ -7468,8 +7468,8 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
.getRowElement(rowIndex);
long bottomBorder = Math.round(WidgetUtil.getBorderBottomThickness(
rowElement.getFirstChildElement()) + 0.5d);
- if (rowElement.getAbsoluteTop() >= escalator.getHeader()
- .getElement().getAbsoluteBottom()
+ if (rowElement.getAbsoluteTop() + bottomBorder >= escalator
+ .getHeader().getElement().getAbsoluteBottom()
&& rowElement.getAbsoluteBottom() <= escalator.getFooter()
.getElement().getAbsoluteTop() + bottomBorder) {
whenVisible.run();